Building: Fix a couple of new warnings.
This commit is contained in:
parent
2b4b9bd65b
commit
f4673162b7
@ -2207,7 +2207,7 @@ void TBuiltIns::addSamplingFunctions(TSampler sampler, TString& typeName, int /*
|
||||
//
|
||||
// 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) {
|
||||
case Esd2D:
|
||||
|
@ -88,7 +88,7 @@ public:
|
||||
// Make sure we do not read off the end of a string.
|
||||
// N.B. Sources can have a length of 0.
|
||||
int sourceToRead = currentSource;
|
||||
int charToRead = currentChar;
|
||||
size_t charToRead = currentChar;
|
||||
while(charToRead >= lengths[sourceToRead]) {
|
||||
charToRead = 0;
|
||||
sourceToRead += 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user