From: Timothy Arceri Date: Tue, 4 Oct 2016 00:15:07 +0000 (+1100) Subject: i965: add MAYBE_UNUSED to assert param X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6fdfcd4d1cad0e83442d061bac3836b1ba1e8b04;p=mesa.git i965: add MAYBE_UNUSED to assert param Fixes unused variable warning in release build. Reviewed-by: Iago Toral Quiroga --- diff --git a/src/mesa/drivers/dri/i965/brw_tcs.c b/src/mesa/drivers/dri/i965/brw_tcs.c index 1f1b1a575d2..7209ae2125a 100644 --- a/src/mesa/drivers/dri/i965/brw_tcs.c +++ b/src/mesa/drivers/dri/i965/brw_tcs.c @@ -364,7 +364,7 @@ brw_upload_tcs_prog(struct brw_context *brw) /* BRW_NEW_TESS_PROGRAMS */ struct brw_tess_ctrl_program *tcp = (struct brw_tess_ctrl_program *) brw->tess_ctrl_program; - struct brw_tess_eval_program *tep = + MAYBE_UNUSED struct brw_tess_eval_program *tep = (struct brw_tess_eval_program *) brw->tess_eval_program; assert(tep);