summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-04-02 17:17:00 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-04-02 17:17:00 +0000
commit17355e8b38d4581a069d3daf1d1bba87f1eb3612 (patch)
tree1abc2dbe46a007907509fc42218cdfea34afcb96
parent7feb5289056993f7e29a93296f06278cb162898b (diff)
add braces to silence warnings
-rw-r--r--src/mesa/shader/grammar.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/shader/grammar.c b/src/mesa/shader/grammar.c
index 09e09204a0..3bf67ccc83 100644
--- a/src/mesa/shader/grammar.c
+++ b/src/mesa/shader/grammar.c
@@ -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