Fix GCC warnings

Fix -Wsign-compare warnings.
Fix -Wunused-parameter warnings.
This commit is contained in:
Jeremy Hayes
2021-08-09 14:41:50 -06:00
parent 2fb89a0072
commit 012436d680
7 changed files with 17 additions and 17 deletions

View File

@@ -3384,7 +3384,7 @@ bool TGlslangToSpvTraverser::visitAggregate(glslang::TVisit visit, glslang::TInt
const auto& spirvInst = node->getSpirvInstruction();
if (spirvInst.set == "") {
std::vector<spv::IdImmediate> idImmOps;
for (int i = 0; i < glslangOperands.size(); ++i) {
for (unsigned int i = 0; i < glslangOperands.size(); ++i) {
if (glslangOperands[i]->getAsTyped()->getQualifier().isSpirvLiteral()) {
// Translate the constant to a literal value
std::vector<unsigned> literals;