diff options
author | Eric Anholt <[email protected]> | 2017-02-06 14:48:45 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-06-20 09:09:09 -0700 |
commit | 45b0172693edf84eb27fe657a49da5a4f2989d8d (patch) | |
tree | 5bef365d7df865d29029f610249908751ff606a6 /src/gallium/drivers/vc4/vc4_program.c | |
parent | 743dcdd93696d305de7146aa6e33359db3e2eab2 (diff) |
vc4: Clean up release build warnings using MAYBE_UNUSED.
These variables are all used in an assert(), so release builds see no
usages.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_program.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_program.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c index f1c40c06a0e..60eb68e847b 100644 --- a/src/gallium/drivers/vc4/vc4_program.c +++ b/src/gallium/drivers/vc4/vc4_program.c @@ -1708,8 +1708,7 @@ ntq_emit_ssa_undef(struct vc4_compile *c, nir_ssa_undef_instr *instr) static void ntq_emit_color_read(struct vc4_compile *c, nir_intrinsic_instr *instr) { - nir_const_value *const_offset = nir_src_as_const_value(instr->src[0]); - assert(const_offset->u32[0] == 0); + assert(nir_src_as_const_value(instr->src[0])->u32[0] == 0); /* Reads of the per-sample color need to be done in * order. |