summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-06-17 07:43:44 -0600
committerBrian Paul <brianp@vmware.com>2009-06-17 09:58:29 -0600
commit516d20fd2688fce833b764ca21f1f1772bed0a03 (patch)
tree5085858317d1f73e5f30c8c4759b8d2538398448
parentec6ad7ba3ce4fa71620642ddde06cf843d1c8d54 (diff)
mesa: silence warning
-rw-r--r--src/mesa/shader/program.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c
index b56308b029..4623ff60de 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);