add braces to silence warnings
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 2 Apr 2004 17:17:00 +0000 (17:17 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 2 Apr 2004 17:17:00 +0000 (17:17 +0000)
src/mesa/shader/grammar.c

index 09e09204a0ed2c6beb5af084d49b261a237d2714..3bf67ccc83cccf732fd7e5161d8ac50ed0364d98 100644 (file)
@@ -2772,7 +2772,9 @@ void grammar_get_last_error (byte *text, unsigned int size, int *pos)
                             }
 
     if (p)
-        while (*p)
+       {
+               while (*p)
+               {
             if (*p == '$')
             {
                 const byte *r = error_param;
@@ -2790,7 +2792,8 @@ void grammar_get_last_error (byte *text, unsigned int size, int *pos)
                 APPEND_CHARACTER(*p)
                 p++;
             }
-
+               }
+       }
     *pos = error_position;
 
 #undef APPEND_CHARACTER