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
|
|
@ -670,7 +670,7 @@ protected:
|
|||
// Gets the struct dereference index that leads to 'precise' object.
|
||||
ObjectAccessChain precise_accesschain_index_str =
|
||||
getFrontElement(remained_accesschain_);
|
||||
unsigned precise_accesschain_index = strtoul(precise_accesschain_index_str.c_str(), nullptr, 10);
|
||||
unsigned precise_accesschain_index = (unsigned)strtoul(precise_accesschain_index_str.c_str(), nullptr, 10);
|
||||
// Gets the node pointed by the access chain index extracted before.
|
||||
glslang::TIntermTyped* potential_precise_node =
|
||||
node->getSequence()[precise_accesschain_index]->getAsTyped();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue