Mesa (master): tnl_dd: Silence "tnl_dd/t_dd_tritmp.h:292:3: warning: suggest braces around empty body in an =?UTF-8?Q?=E2=80=98if=E2=80=99=20statement?="

Ian Romanick idr at kemper.freedesktop.org
Fri Sep 9 19:20:30 UTC 2011


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

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Thu Aug 25 16:55:18 2011 -0700

tnl_dd: Silence "tnl_dd/t_dd_tritmp.h:292:3: warning: suggest braces around empty body in an ‘if’ statement"

---

 src/mesa/tnl_dd/t_dd_tritmp.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mesa/tnl_dd/t_dd_tritmp.h b/src/mesa/tnl_dd/t_dd_tritmp.h
index 022f0c6..cb1204d 100644
--- a/src/mesa/tnl_dd/t_dd_tritmp.h
+++ b/src/mesa/tnl_dd/t_dd_tritmp.h
@@ -288,8 +288,9 @@ static void TAG(triangle)( struct gl_context *ctx, GLuint e0, GLuint e1, GLuint
 	 VERT_Z_ADD(v[1], offset);
 	 VERT_Z_ADD(v[2], offset);
       }
-      if (DO_UNFILLED)
+      if (DO_UNFILLED) {
 	 RASTERIZE( GL_TRIANGLES );
+      }
       if (DO_TWOSTENCIL && !HAVE_STENCIL_TWOSIDE && ctx->Stencil.TestTwoSide) {
          SETUP_STENCIL(facing);
          TRI( v[0], v[1], v[2] );




More information about the mesa-commit mailing list