Address some compiler warnings.

- Add explicit casts from long to int.
- Comment out method argument names that are unused.
- Always initialize a boolean variable before it's read.
This commit is contained in:
Alex Szpakowski 2016-10-08 22:07:20 -03:00
parent 19bdf90eba
commit 49ad2b72a1
6 changed files with 9 additions and 9 deletions

View file

@ -320,8 +320,8 @@ bool TParseContextBase::insertGlobalUniformBlock()
if (globalUniformBlock == nullptr)
return true;
int numMembers = globalUniformBlock->getType().getStruct()->size();
bool inserted;
int numMembers = (int)globalUniformBlock->getType().getStruct()->size();
bool inserted = false;
if (firstNewMember == 0) {
// This is the first request; we need a normal symbol table insert
inserted = symbolTable.insert(*globalUniformBlock);