gallivm: Fix GCC unused-variable warning.
authorVinson Lee <vlee@freedesktop.org>
Thu, 30 Jul 2015 03:17:36 +0000 (20:17 -0700)
committerVinson Lee <vlee@freedesktop.org>
Fri, 31 Jul 2015 21:43:11 +0000 (14:43 -0700)
lp_bld_tgsi_soa.c: In function 'lp_emit_immediate_soa':
lp_bld_tgsi_soa.c:3065:18: warning: unused variable 'size' [-Wunused-variable]
       const uint size = imm->Immediate.NrTokens - 1;
                  ^

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c

index 55f606f9c5962df85ece4c1e5fe6f6cf6d32b246..fae604e2f9ccca900d49bbe07ce253069d306bd7 100644 (file)
@@ -3062,8 +3062,7 @@ void lp_emit_immediate_soa(
    } else {
       /* simply copy the immediate values into the next immediates[] slot */
       unsigned i;
-      const uint size = imm->Immediate.NrTokens - 1;
-      assert(size <= 4);
+      assert(imm->Immediate.NrTokens - 1 <= 4);
       assert(bld->num_immediates < LP_MAX_INLINED_IMMEDIATES);
 
       for(i = 0; i < 4; ++i )