Building: Fix a couple of new warnings.

This commit is contained in:
John Kessenich 2015-07-18 11:25:54 -06:00
parent 2b4b9bd65b
commit f4673162b7
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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;