Fix -Wignored-qualifier and -Wunused-variable warnings

This commit is contained in:
Corentin Wallez
2018-08-08 15:20:15 +02:00
parent 29619b2312
commit e70614223f
2 changed files with 3 additions and 1 deletions

View File

@@ -5383,8 +5383,10 @@ spv::Id TGlslangToSpvTraverser::createAtomicOperation(glslang::TOperator op, spv
// Create group invocation operations.
spv::Id TGlslangToSpvTraverser::createInvocationsOperation(glslang::TOperator op, spv::Id typeId, std::vector<spv::Id>& operands, glslang::TBasicType typeProxy)
{
#ifdef AMD_EXTENSIONS
bool isUnsigned = isTypeUnsignedInt(typeProxy);
bool isFloat = isTypeFloat(typeProxy);
#endif
spv::Op opCode = spv::OpNop;
std::vector<spv::Id> spvGroupOperands;