From 5abd498c47e63ac4445360535b4591dbf6ea627a Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Fri, 8 Oct 2010 16:30:59 -0700 Subject: [PATCH] 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' --- src/mesa/drivers/dri/i965/brw_vs.c | 1 + 1 file changed, 1 insertion(+) 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) -- 2.30.2