Mesa (master): swrast: fix a few release build warnings
Brian Paul
brianp at kemper.freedesktop.org
Tue Feb 24 21:49:45 UTC 2015
Module: Mesa
Branch: master
Commit: a55831e8fabf3e53802a45d8bd74dbb1986f9754
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a55831e8fabf3e53802a45d8bd74dbb1986f9754
Author: Brian Paul <brianp at vmware.com>
Date: Mon Feb 23 17:48:00 2015 -0700
swrast: fix a few release build warnings
---
src/mesa/swrast/s_context.c | 1 +
src/mesa/swrast/s_span.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c
index cc7d9b3..51cc227 100644
--- a/src/mesa/swrast/s_context.c
+++ b/src/mesa/swrast/s_context.c
@@ -251,6 +251,7 @@ _swrast_update_fog_state( struct gl_context *ctx )
const struct gl_fragment_program *fp = ctx->FragmentProgram._Current;
assert(fp == NULL || fp->Base.Target == GL_FRAGMENT_PROGRAM_ARB);
+ (void) fp; /* silence unused var warning */
/* determine if fog is needed, and if so, which fog mode */
swrast->_FogEnabled = (!_swrast_use_fragment_program(ctx) &&
diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c
index 2340fdd..a8dc391 100644
--- a/src/mesa/swrast/s_span.c
+++ b/src/mesa/swrast/s_span.c
@@ -1468,6 +1468,7 @@ _swrast_read_rgba_span( struct gl_context *ctx, struct gl_renderbuffer *rb,
rb->_BaseFormat == GL_ALPHA);
assert(srb->Map);
+ (void) srb; /* silence unused var warning */
src = _swrast_pixel_address(rb, x + skip, y);
More information about the mesa-commit
mailing list