From: Brian Paul Date: Tue, 29 Jul 2008 23:09:40 +0000 (-0600) Subject: mesa: Silence compiler warnings on Windows. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c3ad1761586c640ba7d4060c4a6917ce61078cf9;p=mesa.git mesa: Silence compiler warnings on Windows. --- diff --git a/src/mesa/shader/slang/slang_print.c b/src/mesa/shader/slang/slang_print.c index 68a4d015210..2284b3be417 100644 --- a/src/mesa/shader/slang/slang_print.c +++ b/src/mesa/shader/slang/slang_print.c @@ -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);