Fix -Wignored-qualifier and -Wunused-variable warnings
This commit is contained in:
		
							parent
							
								
									29619b2312
								
							
						
					
					
						commit
						e70614223f
					
				@ -5383,8 +5383,10 @@ spv::Id TGlslangToSpvTraverser::createAtomicOperation(glslang::TOperator op, spv
 | 
				
			|||||||
// Create group invocation operations.
 | 
					// Create group invocation operations.
 | 
				
			||||||
spv::Id TGlslangToSpvTraverser::createInvocationsOperation(glslang::TOperator op, spv::Id typeId, std::vector<spv::Id>& operands, glslang::TBasicType typeProxy)
 | 
					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 isUnsigned = isTypeUnsignedInt(typeProxy);
 | 
				
			||||||
    bool isFloat = isTypeFloat(typeProxy);
 | 
					    bool isFloat = isTypeFloat(typeProxy);
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    spv::Op opCode = spv::OpNop;
 | 
					    spv::Op opCode = spv::OpNop;
 | 
				
			||||||
    std::vector<spv::Id> spvGroupOperands;
 | 
					    std::vector<spv::Id> spvGroupOperands;
 | 
				
			||||||
 | 
				
			|||||||
@ -59,7 +59,7 @@ public:
 | 
				
			|||||||
        name(pName), offset(pOffset),
 | 
					        name(pName), offset(pOffset),
 | 
				
			||||||
        glDefineType(pGLDefineType), size(pSize), index(pIndex), counterIndex(-1), stages(EShLanguageMask(0)), type(pType.clone()) { }
 | 
					        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
 | 
					    int getBinding() const
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        if (type == nullptr || !type->getQualifier().hasBinding())
 | 
					        if (type == nullptr || !type->getQualifier().hasBinding())
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user