a4eb334c79d78bbd63feff3780572f4213f82aba |
|
17-Nov-2016 |
David Gross <dgross@google.com> |
Fix code to avoid various compiler warnings. Test: frameworks/rs/rsov/compiler/tests/run-lit-tests.sh In file included from external/spirv-llvm/lib/SPIRV/Mangler/ManglingUtils.cpp:13: external/spirv-llvm/lib/SPIRV/Mangler/ManglingUtils.h:26:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] const SPIRversion getSupportedVersion(TypePrimitiveEnum t); ^~~~~~ external/spirv-llvm/lib/SPIRV/Mangler/ManglingUtils.cpp:174:3: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] const SPIRversion getSupportedVersion(TypePrimitiveEnum t) { ^~~~~~ In file included from external/spirv-llvm/lib/SPIRV/Mangler/ManglingUtils.cpp:13: In file included from external/spirv-llvm/lib/SPIRV/Mangler/ManglingUtils.h:16: external/spirv-llvm/lib/SPIRV/Mangler/ParameterType.h:435:10: warning: 'SPIR::TypeVisitor' has virtual functions but non-virtual destructor [-Wnon-virtual-dtor] struct TypeVisitor{ ^ In file included from external/spirv-llvm/lib/SPIRV/OCLTypeToSPIRV.cpp:43: external/spirv-llvm/lib/SPIRV/OCLTypeToSPIRV.h:69:12: warning: private field 'CLVer' is not used [-Wunused-private-field] unsigned CLVer; ^ external/spirv-llvm/lib/SPIRV/libSPIRV/SPIRVModule.cpp:305:17: warning: private field 'BoolType' is not used [-Wunused-private-field] SPIRVTypeInt *BoolType; ^ external/spirv-llvm/lib/SPIRV/SPIRVWriter.cpp:589:8: warning: unused variable 'AddrSpc' [-Wunused-variable] auto AddrSpc = T->getPointerAddressSpace(); ^ external/spirv-llvm/lib/SPIRV/Mangler/ParameterType.h:435:10: warning: 'SPIR::TypeVisitor' has virtual functions but non-virtual destructor [-Wnon-virtual-dtor] struct TypeVisitor{ ^ external/spirv-llvm/lib/SPIRV/SPIRVReader.cpp:1111:12: warning: unused variable 'Store' [-Wunused-variable] auto Store = new StoreInst(I, Alloca, false, CI); ^ external/spirv-llvm/lib/SPIRV/SPIRVReader.cpp:143:1: warning: unused function 'getMDString' [-Wunused-function] getMDString(LLVMContext *Context, const std::string& Str) { ^ external/spirv-llvm/lib/SPIRV/OCL20ToSPIRV.cpp:1083:8: warning: unused variable 'IsImg' [-Wunused-variable] auto IsImg = isOCLImageType(CI->getArgOperand(0)->getType(), &TyName); ^ Change-Id: I4f97a0ddcd8415c1e6e37227971b7780f7089711
/external/spirv-llvm/lib/SPIRV/Mangler/ParameterType.h
|