mesa: Silence compiler warnings on Windows.
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 29 Jul 2008 23:09:40 +0000 (17:09 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 29 Jul 2008 23:09:40 +0000 (17:09 -0600)
src/mesa/shader/slang/slang_print.c

index 68a4d01521064dbef925ac85acfa2edda8859e25..2284b3be41707703a5d09da59f323c43c28976ad 100644 (file)
@@ -243,7 +243,7 @@ find_var(const slang_variable_scope *s, slang_atom name)
 void
 slang_print_tree(const slang_operation *op, int indent)
 {
-   int i;
+   GLuint i;
 
    switch (op->type) {
 
@@ -265,12 +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);
-         }
-         printf("\n");
+      for (i = 0; i < op->locals->num_variables; i++) {
+         printf("%s ", (char *) op->locals->variables[i]->a_name);
       }
       print_generic(op, NULL, indent+3);
       spaces(indent);