i965: add MAYBE_UNUSED to assert param
authorTimothy Arceri <timothy.arceri@collabora.com>
Tue, 4 Oct 2016 00:15:07 +0000 (11:15 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Tue, 4 Oct 2016 23:13:58 +0000 (10:13 +1100)
Fixes unused variable warning in release build.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_tcs.c

index 1f1b1a575d2c71a6e4f9601d1586440ac68ebb9c..7209ae2125a99ed54b8157e9c3c7f42d65ea5e65 100644 (file)
@@ -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);