[Mesa-dev] [PATCH 4/5] i965: wrap unused variable in #ifndef NDEBUG
Timothy Arceri
timothy.arceri at collabora.com
Tue Oct 4 00:15:07 UTC 2016
Fixes unused variable warning in release build.
---
src/mesa/drivers/dri/i965/brw_tcs.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_tcs.c b/src/mesa/drivers/dri/i965/brw_tcs.c
index 1f1b1a5..01500e0 100644
--- a/src/mesa/drivers/dri/i965/brw_tcs.c
+++ b/src/mesa/drivers/dri/i965/brw_tcs.c
@@ -364,9 +364,11 @@ 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;
+#ifndef NDEBUG
struct brw_tess_eval_program *tep =
(struct brw_tess_eval_program *) brw->tess_eval_program;
assert(tep);
+#endif
if (!brw_state_dirty(brw,
_NEW_TEXTURE,
--
2.7.4
More information about the mesa-dev
mailing list