OSDN Git Service

mesa: silence warning
authorBrian Paul <brianp@vmware.com>
Wed, 17 Jun 2009 13:43:44 +0000 (07:43 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 17 Jun 2009 15:58:29 +0000 (09:58 -0600)
src/mesa/shader/program.c

index b56308b..4623ff6 100644 (file)
@@ -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);