mesa: Silence compiler warnings on Windows.
authorMichal Krol <michal@tungstengraphics.com>
Wed, 16 Jul 2008 18:14:42 +0000 (20:14 +0200)
committerMichal Krol <michal@tungstengraphics.com>
Wed, 16 Jul 2008 18:14:42 +0000 (20:14 +0200)
src/mesa/shader/slang/slang_print.c

index bb0da9e34d8f782d6ced0a37ed05740cf326bbae..f48762fb11171f3da725950dfca3f289db8e2ba1 100644 (file)
@@ -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);