summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-10-07 10:38:30 -0600
committerBrian Paul <[email protected]>2011-10-07 10:38:30 -0600
commit4170227407eea7fd8287b17480a37309bf73f4e4 (patch)
tree29bda7455214d0e69714be3c00f984b096a4f55c
parent13b776ed51f46e7a945e3bd51f5483d8fa1696bf (diff)
i965: silence unused var warnings in non-debug builds
Reviewed-by: Chad Versace <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp1
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 20001807b1e..e073eaaec2d 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -1773,6 +1773,7 @@ fs_visitor::run()
/* Make sure we didn't try to sneak in an extra uniform */
assert(orig_nr_params == c->prog_data.nr_params);
+ (void) orig_nr_params;
}
return !failed;
diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c
index f746b31f66c..fdb2d15c609 100644
--- a/src/mesa/drivers/dri/i965/brw_wm.c
+++ b/src/mesa/drivers/dri/i965/brw_wm.c
@@ -467,6 +467,7 @@ static void brw_prepare_wm_prog(struct brw_context *brw)
&brw->wm.prog_offset, &brw->wm.prog_data)) {
bool success = do_wm_prog(brw, ctx->Shader.CurrentFragmentProgram, fp,
&key);
+ (void) success;
assert(success);
}
}