diff options
author | Brian Paul <[email protected]> | 2003-11-21 16:38:56 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-11-21 16:38:56 +0000 |
commit | ba254c08c0fa896ac425961c7900b99775979e16 (patch) | |
tree | ba4c4cfb18f34c52c50423c13f70dc56f853350d /src/mesa/main/arbfragparse.c | |
parent | 663a9e1b7ef7b8384abe2f81e1a8749b942f6d3a (diff) |
fix a bunch of warnings
Diffstat (limited to 'src/mesa/main/arbfragparse.c')
-rw-r--r-- | src/mesa/main/arbfragparse.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/main/arbfragparse.c b/src/mesa/main/arbfragparse.c index eb7d0c24a66..ca4b68d8e24 100644 --- a/src/mesa/main/arbfragparse.c +++ b/src/mesa/main/arbfragparse.c @@ -147,6 +147,9 @@ debug_fp_inst(GLint num, struct fp_instruction *fp) case FP_OPCODE_X2D: fprintf(stderr, "FP_OPCODE_XPD"); break; + + default: + _mesa_warning(NULL, "Bad opcode in debug_fg_inst()"); } fprintf(stderr, " D(0x%x:%d:%d%d%d%d) ", @@ -200,6 +203,8 @@ _mesa_parse_arb_fragment_program(GLcontext * ctx, GLenum target, #if DEBUG_FP debug_fp_inst(ap.Base.NumInstructions, ap.FPInstructions); +#else + (void) debug_fp_inst; #endif /* copy the relvant contents of the arb_program struct into the @@ -214,7 +219,7 @@ _mesa_parse_arb_fragment_program(GLcontext * ctx, GLenum target, program->Instructions = ap.FPInstructions; program->InputsRead = ap.InputsRead; program->OutputsWritten = ap.OutputsWritten; - for (retval=0; retval<MAX_TEXTURE_IMAGE_UNITS; retval++) + for (retval=0; retval<MAX_TEXTURE_IMAGE_UNITS; retval++) program->TexturesUsed[retval] = ap.TexturesUsed[retval]; program->NumAluInstructions = ap.NumAluInstructions; program->NumTexInstructions = ap.NumTexInstructions; |