mesa: Silence unused parameter warning in check_context_limits in non-debug builds
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 29 Oct 2014 20:06:15 +0000 (13:06 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 5 Nov 2014 17:36:04 +0000 (09:36 -0800)
../../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 <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/context.c

index 7c62dbc84dac5449badd7b11ece161289ec545c9..400c158a75533265adaf6a2f239dc3a00b564632 100644 (file)
@@ -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)));