From e70614223f14ca624258cedaf3a62e6fc2eb31c7 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Wed, 8 Aug 2018 15:20:15 +0200 Subject: [PATCH] Fix -Wignored-qualifier and -Wunused-variable warnings --- SPIRV/GlslangToSpv.cpp | 2 ++ glslang/MachineIndependent/reflection.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/SPIRV/GlslangToSpv.cpp b/SPIRV/GlslangToSpv.cpp index c3e79401..5032cc13 100755 --- a/SPIRV/GlslangToSpv.cpp +++ b/SPIRV/GlslangToSpv.cpp @@ -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& operands, glslang::TBasicType typeProxy) { +#ifdef AMD_EXTENSIONS bool isUnsigned = isTypeUnsignedInt(typeProxy); bool isFloat = isTypeFloat(typeProxy); +#endif spv::Op opCode = spv::OpNop; std::vector spvGroupOperands; diff --git a/glslang/MachineIndependent/reflection.h b/glslang/MachineIndependent/reflection.h index 2cd14dfb..49282c30 100644 --- a/glslang/MachineIndependent/reflection.h +++ b/glslang/MachineIndependent/reflection.h @@ -59,7 +59,7 @@ public: name(pName), offset(pOffset), glDefineType(pGLDefineType), size(pSize), index(pIndex), counterIndex(-1), stages(EShLanguageMask(0)), type(pType.clone()) { } - const TType* const getType() const { return type; } + const TType* getType() const { return type; } int getBinding() const { if (type == nullptr || !type->getQualifier().hasBinding())