Commit f4673162 by John Kessenich

Building: Fix a couple of new warnings.

parent 2b4b9bd6
...@@ -2207,7 +2207,7 @@ void TBuiltIns::addSamplingFunctions(TSampler sampler, TString& typeName, int /* ...@@ -2207,7 +2207,7 @@ void TBuiltIns::addSamplingFunctions(TSampler sampler, TString& typeName, int /*
// //
// Add all the texture gather functions for the given type. // Add all the texture gather functions for the given type.
// //
void TBuiltIns::addGatherFunctions(TSampler sampler, TString& typeName, int version, EProfile profile) void TBuiltIns::addGatherFunctions(TSampler sampler, TString& typeName, int version, EProfile /* profile */)
{ {
switch (sampler.dim) { switch (sampler.dim) {
case Esd2D: case Esd2D:
......
...@@ -88,7 +88,7 @@ public: ...@@ -88,7 +88,7 @@ public:
// Make sure we do not read off the end of a string. // Make sure we do not read off the end of a string.
// N.B. Sources can have a length of 0. // N.B. Sources can have a length of 0.
int sourceToRead = currentSource; int sourceToRead = currentSource;
int charToRead = currentChar; size_t charToRead = currentChar;
while(charToRead >= lengths[sourceToRead]) { while(charToRead >= lengths[sourceToRead]) {
charToRead = 0; charToRead = 0;
sourceToRead += 1; sourceToRead += 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment