[Mesa-dev] [PATCH] mesa: Silence unused parameter warning in check_context_limits in non-debug builds
Ian Romanick
idr at freedesktop.org
Mon Nov 3 15:43:40 PST 2014
From: Ian Romanick <ian.d.romanick at intel.com>
../../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 at intel.com>
---
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 7c62dbc..400c158 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)));
--
1.8.1.4
More information about the mesa-dev
mailing list