i965: Silence unused variable warning on non-debug builds.
authorVinson Lee <vlee@vmware.com>
Fri, 8 Oct 2010 23:30:59 +0000 (16:30 -0700)
committerVinson Lee <vlee@vmware.com>
Fri, 8 Oct 2010 23:30:59 +0000 (16:30 -0700)
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

index 9f90e1e5e5c818182ec326d15737a4972f642f01..b0cfd4fe1e372e39a645b3cb66e8b1365faffa13 100644 (file)
@@ -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)