summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2013-08-27 15:08:00 -0700
committerChad Versace <[email protected]>2013-08-28 10:42:51 -0700
commit72b3c6c96f971fbaf438289e5e89ccf324a49ca7 (patch)
treeff48c8452fa73203c27bf5bf1df382eb658d6fe4 /src
parent031c3393a1f6f2ce63d36005019220a8776b6c9d (diff)
i965: Silence unused variable warning in release build
Use `(void) success;` to silence this warning: i965/brw_vs.c:481:12: warning: unused variable 'success' [-Wunused-variable] bool success = do_vs_prog(brw, ctx->Shader.CurrentVertexProgram, Reviewed-by: Kenneth Graunke <[email protected]> Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c
index 6a67bc47042..79b4364dbcb 100644
--- a/src/mesa/drivers/dri/i965/brw_vs.c
+++ b/src/mesa/drivers/dri/i965/brw_vs.c
@@ -479,7 +479,7 @@ static void brw_upload_vs_prog(struct brw_context *brw)
&brw->vs.prog_offset, &brw->vs.prog_data)) {
bool success = do_vs_prog(brw, ctx->Shader.CurrentVertexProgram,
vp, &key);
-
+ (void) success;
assert(success);
}
if (memcmp(&brw->vs.prog_data->base.vue_map, &brw->vue_map_geom_out,