Mesa (master): swrast: silence unused var warnings

Brian Paul brianp at kemper.freedesktop.org
Tue Aug 9 07:09:11 PDT 2011


Module: Mesa
Branch: master
Commit: afd1d857752b5c30a3082068f8bb9002e0c69699
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=afd1d857752b5c30a3082068f8bb9002e0c69699

Author: Fabio Pedretti <fabio.ped at libero.it>
Date:   Tue Aug  9 08:08:59 2011 -0600

swrast: silence unused var warnings

Signed-off-by: Brian Paul <brianp at vmware.com>

---

 src/mesa/swrast/s_span.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c
index db102ac..9a91be3 100644
--- a/src/mesa/swrast/s_span.c
+++ b/src/mesa/swrast/s_span.c
@@ -212,10 +212,10 @@ interpolate_active_attribs(struct gl_context *ctx, SWspan *span, GLbitfield attr
 static INLINE void
 interpolate_int_colors(struct gl_context *ctx, SWspan *span)
 {
+#if CHAN_BITS != 32
    const GLuint n = span->end;
    GLuint i;
 
-#if CHAN_BITS != 32
    ASSERT(!(span->arrayMask & SPAN_RGBA));
 #endif
 



More information about the mesa-commit mailing list