From: Vinson Lee Date: Fri, 8 Oct 2010 23:02:59 +0000 (-0700) Subject: i965: Silence unused variable warning on non-debug builds. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=978ffa1d61902f0d55e15fbc51af75d444f35124;p=mesa.git 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' --- diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c index 419b40ba84b..8ebcfa3c657 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].