From: Chad Versace Date: Tue, 27 Aug 2013 22:08:00 +0000 (-0700) Subject: i965: Silence unused variable warning in release build X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=72b3c6c96f971fbaf438289e5e89ccf324a49ca7;p=mesa.git 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 Signed-off-by: Chad Versace --- 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,