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:
@@ -1175,7 +1175,7 @@ Id Builder::createTextureCall(Decoration precision, Id resultType, bool proj, co
|
||||
Id Builder::createTextureQueryCall(Op opCode, const TextureParameters& parameters)
|
||||
{
|
||||
// Figure out the result type
|
||||
Id resultType;
|
||||
Id resultType = NoType;
|
||||
switch (opCode) {
|
||||
case OpTextureQuerySize:
|
||||
case OpTextureQuerySizeLod:
|
||||
|
||||
Reference in New Issue
Block a user