From: Vinson Lee Date: Fri, 8 Oct 2010 23:30:59 +0000 (-0700) Subject: i965: Silence unused variable warning on non-debug builds. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5abd498c47e63ac4445360535b4591dbf6ea627a;p=mesa.git i965: Silence unused variable warning on non-debug builds. Fixes this GCC warning. brw_vs.c: In function 'do_vs_prog': brw_vs.c:46: warning: unused variable 'ctx' --- diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c index 9f90e1e5e5c..b0cfd4fe1e3 100644 --- a/src/mesa/drivers/dri/i965/brw_vs.c +++ b/src/mesa/drivers/dri/i965/brw_vs.c @@ -96,6 +96,7 @@ static void do_vs_prog( struct brw_context *brw, sizeof(c.prog_data)); assert(ctx->Const.VertexProgram.MaxNativeParameters == ARRAY_SIZE(c.constant_map)); + (void) ctx; aux_size = sizeof(c.prog_data); if (c.vp->use_const_buffer)