summaryrefslogtreecommitdiff
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorMichal Krol <michal@tungstengraphics.com>2008-07-16 20:14:42 +0200
committerMichal Krol <michal@tungstengraphics.com>2008-07-16 20:14:42 +0200
commit7a0b79fe3632ca45def56679868473334ef1e194 (patch)
tree3cb5699f7a2ab07eecdec77dcd9d9d9e7bc5f251 /src/mesa/shader
parent26df49cd7a67aa9dc26e9cf271d6ed121f08f95d (diff)
mesa: Silence compiler warnings on Windows.
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/slang/slang_print.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mesa/shader/slang/slang_print.c b/src/mesa/shader/slang/slang_print.c
index bb0da9e34d..f48762fb11 100644
--- a/src/mesa/shader/slang/slang_print.c
+++ b/src/mesa/shader/slang/slang_print.c
@@ -265,11 +265,8 @@ slang_print_tree(const slang_operation *op, int indent)
printf("{{ // new scope locals=%p outer=%p: ",
(void *) op->locals,
(void *) op->locals->outer_scope);
- {
- int i;
- for (i = 0; i < op->locals->num_variables; i++) {
- printf("%s ", (char *) op->locals->variables[i]->a_name);
- }
+ for (i = 0; i < op->locals->num_variables; i++) {
+ printf("%s ", (char *) op->locals->variables[i]->a_name);
}
printf("\n");
print_generic(op, NULL, indent+3);