Fix most clang warnings
- member initializing order in some constructors - missing default branches in switch-case - uninitialized variable if switch-case default (uncritical because program would exit) - && and || brace warnings in if()
This commit is contained in:
parent
e6f7988ade
commit
a5ade51363
6 changed files with 9 additions and 7 deletions
|
|
@ -685,7 +685,7 @@ int TScanContext::tokenizeIdentifier()
|
|||
return keyword;
|
||||
|
||||
case ATOMIC_UINT:
|
||||
if (parseContext.profile == EEsProfile && parseContext.version >= 310 ||
|
||||
if ((parseContext.profile == EEsProfile && parseContext.version >= 310) ||
|
||||
parseContext.extensionsTurnedOn(1, &E_GL_ARB_shader_atomic_counters))
|
||||
return keyword;
|
||||
return es30ReservedFromGLSL(420);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue