Mesa (master): i965: silence unused var warnings in non-debug builds

Brian Paul brianp at kemper.freedesktop.org
Fri Oct 7 09:38:39 PDT 2011


Module: Mesa
Branch: master
Commit: 4170227407eea7fd8287b17480a37309bf73f4e4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4170227407eea7fd8287b17480a37309bf73f4e4

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Oct  7 10:38:30 2011 -0600

i965: silence unused var warnings in non-debug builds

Reviewed-by: Chad Versace <chad at chad-versace.us>

---

 src/mesa/drivers/dri/i965/brw_fs.cpp |    1 +
 src/mesa/drivers/dri/i965/brw_wm.c   |    1 +
 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 2000180..e073eaa 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 f746b31..fdb2d15 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);
    }
 }



More information about the mesa-commit mailing list