From 6fdfcd4d1cad0e83442d061bac3836b1ba1e8b04 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Tue, 4 Oct 2016 11:15:07 +1100 Subject: [PATCH] i965: add MAYBE_UNUSED to assert param Fixes unused variable warning in release build. Reviewed-by: Iago Toral Quiroga --- src/mesa/drivers/dri/i965/brw_tcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_tcs.c b/src/mesa/drivers/dri/i965/brw_tcs.c index 1f1b1a5..7209ae2 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); -- 2.7.4