r600g: Remove unused variable.
authorVinson Lee <vlee@vmware.com>
Sat, 2 Oct 2010 00:00:43 +0000 (17:00 -0700)
committerVinson Lee <vlee@vmware.com>
Sat, 2 Oct 2010 00:02:01 +0000 (17:02 -0700)
Fixes this GCC warning.
r600_shader.c: In function 'tgsi_split_literal_constant':
r600_shader.c:818: warning: unused variable 'index'

src/gallium/drivers/r600/r600_shader.c

index 41c01d4a7b35bdf7605255aa087e4f39436d0a7d..5709426ea7576759abcbb7aab2d888dc3395a1dd 100644 (file)
@@ -815,7 +815,7 @@ static int tgsi_split_literal_constant(struct r600_shader_ctx *ctx, struct r600_
 {
        struct tgsi_full_instruction *inst = &ctx->parse.FullToken.FullInstruction;
        struct r600_bc_alu alu;
-       int i, j, k, nliteral, r, index;
+       int i, j, k, nliteral, r;
 
        for (i = 0, nliteral = 0; i < inst->Instruction.NumSrcRegs; i++) {
                if (inst->Src[i].Register.File == TGSI_FILE_IMMEDIATE) {