From: Ian Romanick Date: Wed, 29 Oct 2014 20:06:15 +0000 (-0700) Subject: mesa: Silence unused parameter warning in check_context_limits in non-debug builds X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=93a92d2c693b9f3de75638836db3e20eaec38530;p=mesa.git 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 --- 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)));