i965: silence unused var warnings in non-debug builds
authorBrian Paul <brianp@vmware.com>
Fri, 7 Oct 2011 16:38:30 +0000 (10:38 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 7 Oct 2011 16:38:30 +0000 (10:38 -0600)
Reviewed-by: Chad Versace <chad@chad-versace.us>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_wm.c

index 20001807b1eda71facfc030898bb8328005ef4c6..e073eaaec2db8eb918bf7012f5b8b961cbe19d57 100644 (file)
@@ -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;
index f746b31f66c6266431e0d6d63b0494191a6da154..fdb2d15c60912bdff7e0561218363f2ed7a78a46 100644 (file)
@@ -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);
    }
 }