Silence minor compiler warnings (-Wextra).

This commit is contained in:
Brian Paul
2006-04-05 03:05:17 +00:00
parent 027bb77e02
commit 28b014ee25
7 changed files with 22 additions and 12 deletions

View File

@@ -248,7 +248,7 @@ MatchInstruction(const GLubyte *token)
return result;
}
}
result.opcode = (enum prog_opcode) -1;
result.opcode = MAX_OPCODE; /* i.e. invalid instruction */
return result;
}
@@ -1320,7 +1320,7 @@ Parse_InstructionSequence(struct parse_state *parseState,
/* try to find matching instuction */
instMatch = MatchInstruction(token);
if (instMatch.opcode < 0) {
if (instMatch.opcode >= MAX_OPCODE) {
/* bad instruction name */
RETURN_ERROR2("Unexpected token: ", token);
}