From 516d20fd2688fce833b764ca21f1f1772bed0a03 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 17 Jun 2009 07:43:44 -0600 Subject: mesa: silence warning --- src/mesa/shader/program.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c index b56308b0297..4623ff60de6 100644 --- a/src/mesa/shader/program.c +++ b/src/mesa/shader/program.c @@ -837,6 +837,8 @@ _mesa_postprocess_program(GLcontext *ctx, struct gl_program *prog) GLint whiteIndex = _mesa_add_unnamed_constant(prog->Parameters, white, 4, &whiteSwizzle); + (void) whiteIndex; + for (i = 0; i < prog->NumInstructions; i++) { struct prog_instruction *inst = prog->Instructions + i; const GLuint n = _mesa_num_inst_src_regs(inst->Opcode); -- cgit v1.2.3