The attached patch fixes the following swrast warnings:
swrast/s_span.c: In function 'interpolate_int_colors':
swrast/s_span.c:216:11: warning: unused variable 'i'
swrast/s_span.c:215:17: warning: unused variable 'n'
--- a/src/mesa/swrast/s_span.c 2011-07-21 09:57:48.183225983 +0200
+++ b/src/mesa/swrast/s_span.c 2011-07-28 13:59:37.037050901 +0200
@@ -212,10 +212,10 @@ interpolate_active_attribs(struct gl_con
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
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev