summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2014-10-29 13:06:15 -0700
committerIan Romanick <[email protected]>2014-11-05 09:36:04 -0800
commit93a92d2c693b9f3de75638836db3e20eaec38530 (patch)
treef4cdfcaf02dd93d103591e5499ca055a1e7ca180 /src
parent6f3b8bb747f8c95d21c98bb583c043e432f928a8 (diff)
mesa: Silence unused parameter warning in check_context_limits in non-debug builds
../../src/mesa/main/context.c: In function 'check_context_limits': ../../src/mesa/main/context.c:733:41: warning: unused parameter 'ctx' [-Wunused-parameter] Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 7c62dbc84da..400c158a755 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -732,6 +732,8 @@ _mesa_init_constants(struct gl_constants *consts, gl_api api)
static void
check_context_limits(struct gl_context *ctx)
{
+ (void) ctx;
+
/* check that we don't exceed the size of various bitfields */
assert(VARYING_SLOT_MAX <=
(8 * sizeof(ctx->VertexProgram._Current->Base.OutputsWritten)));