From 17355e8b38d4581a069d3daf1d1bba87f1eb3612 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 2 Apr 2004 17:17:00 +0000 Subject: [PATCH] add braces to silence warnings --- src/mesa/shader/grammar.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.30.2