Mesa (master): i965: Silence unused variable warning on non-debug builds.

Vinson Lee vlee at kemper.freedesktop.org
Fri Oct 8 23:04:05 UTC 2010


Module: Mesa
Branch: master
Commit: 978ffa1d61902f0d55e15fbc51af75d444f35124
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=978ffa1d61902f0d55e15fbc51af75d444f35124

Author: Vinson Lee <vlee at vmware.com>
Date:   Fri Oct  8 16:02:59 2010 -0700

i965: Silence unused variable warning on non-debug builds.

Fixes this GCC warning.
brw_eu_emit.c: In function 'brw_math2':
brw_eu_emit.c:1189: warning: unused variable 'intel'

---

 src/mesa/drivers/dri/i965/brw_eu_emit.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c
index 419b40b..8ebcfa3 100644
--- a/src/mesa/drivers/dri/i965/brw_eu_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c
@@ -1190,6 +1190,7 @@ void brw_math2(struct brw_compile *p,
    struct brw_instruction *insn = next_insn(p, BRW_OPCODE_MATH);
 
    assert(intel->gen >= 6);
+   (void) intel;
 
    /* Math is the same ISA format as other opcodes, except that CondModifier
     * becomes FC[3:0] and ThreadCtrl becomes FC[5:4].




More information about the mesa-commit mailing list