From 93a92d2c693b9f3de75638836db3e20eaec38530 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 29 Oct 2014 13:06:15 -0700 Subject: [PATCH] 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 Reviewed-by: Kenneth Graunke --- src/mesa/main/context.c | 2 ++ 1 file changed, 2 insertions(+) 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))); -- 2.30.2