Mesa (master): i965: Silence unused variable warning on non-debug builds.
Vinson Lee
vlee at kemper.freedesktop.org
Fri Oct 8 23:32:20 UTC 2010
Module: Mesa
Branch: master
Commit: 5abd498c47e63ac4445360535b4591dbf6ea627a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5abd498c47e63ac4445360535b4591dbf6ea627a
Author: Vinson Lee <vlee at vmware.com>
Date: Fri Oct 8 16:30:59 2010 -0700
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 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c
index 9f90e1e..b0cfd4f 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)
More information about the mesa-commit
mailing list