put braces around RENDER_SPAN macro when called, not when defined. Fixes -pedantic...
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 29 Mar 2006 23:42:44 +0000 (23:42 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 29 Mar 2006 23:42:44 +0000 (23:42 +0000)
src/mesa/swrast/s_triangle.c
src/mesa/swrast/s_tritemp.h

index 056446b17b460159a62652adce34b9fc7976b9d9..440bbebce5d4837f31f1c7f7263484d5beb16cec 100644 (file)
@@ -2,7 +2,7 @@
  * Mesa 3-D graphics library
  * Version:  6.5
  *
- * Copyright (C) 1999-2005  Brian Paul   All Rights Reserved.
+ * Copyright (C) 1999-2006  Brian Paul   All Rights Reserved.
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -162,7 +162,7 @@ _swrast_culltriangle( GLcontext *ctx,
       return;                                                          \
    }
 
-#define RENDER_SPAN( span  ) {                                         \
+#define RENDER_SPAN( span )                                            \
    GLuint i;                                                           \
    span.intTex[0] -= FIXED_HALF; /* off-by-one error? */               \
    span.intTex[1] -= FIXED_HALF;                                       \
@@ -177,7 +177,7 @@ _swrast_culltriangle( GLcontext *ctx,
       span.intTex[0] += span.intTexStep[0];                            \
       span.intTex[1] += span.intTexStep[1];                            \
    }                                                                   \
-   rb->PutRowRGB(ctx, rb, span.end, span.x, span.y, span.array->rgb, NULL); }
+   rb->PutRowRGB(ctx, rb, span.end, span.x, span.y, span.array->rgb, NULL);
 
 #include "s_tritemp.h"
 
@@ -213,7 +213,7 @@ _swrast_culltriangle( GLcontext *ctx,
       return;                                                          \
    }
 
-#define RENDER_SPAN( span ) {                                          \
+#define RENDER_SPAN( span )                                            \
    GLuint i;                                                           \
    span.intTex[0] -= FIXED_HALF; /* off-by-one error? */               \
    span.intTex[1] -= FIXED_HALF;                                       \
@@ -238,7 +238,7 @@ _swrast_culltriangle( GLcontext *ctx,
       span.z += span.zStep;                                            \
    }                                                                   \
    rb->PutRowRGB(ctx, rb, span.end, span.x, span.y,                    \
-                 span.array->rgb, span.array->mask); }
+                 span.array->rgb, span.array->mask);
 
 #include "s_tritemp.h"
 
index d4c9fdd7cb9f0520247ddd4645cdecc1afba18a4..7f581561ec5aac4b0020bbae219a75f4c5183865 100644 (file)
@@ -2,7 +2,7 @@
  * Mesa 3-D graphics library
  * Version:  6.5
  *
- * Copyright (C) 1999-2005  Brian Paul   All Rights Reserved.
+ * Copyright (C) 1999-2006  Brian Paul   All Rights Reserved.
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -1159,7 +1159,9 @@ static void NAME(GLcontext *ctx, const SWvertex *v0,
 #ifdef INTERP_INDEX
                   CLAMP_INTERPOLANT(index, indexStep, len);
 #endif
-                  RENDER_SPAN( span );
+                  {
+                     RENDER_SPAN( span );
+                  }
                }
 
                /*