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:
parent
19bdf90eba
commit
49ad2b72a1
6 changed files with 9 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue