From: Brian Paul Date: Fri, 2 Apr 2004 17:17:00 +0000 (+0000) Subject: add braces to silence warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=17355e8b38d4581a069d3daf1d1bba87f1eb3612;p=mesa.git add braces to silence warnings --- diff --git a/src/mesa/shader/grammar.c b/src/mesa/shader/grammar.c index 09e09204a0e..3bf67ccc83c 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