diff options
author | Brian Paul <[email protected]> | 2008-07-29 17:09:40 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-07-29 17:09:40 -0600 |
commit | c3ad1761586c640ba7d4060c4a6917ce61078cf9 (patch) | |
tree | 337933b9c380226243622162862a8c6f49bbf288 /src/mesa/shader | |
parent | 153407f72d3492f9d35e2424bb877def8b1a1dcd (diff) |
mesa: Silence compiler warnings on Windows.
Diffstat (limited to 'src/mesa/shader')
-rw-r--r-- | src/mesa/shader/slang/slang_print.c | 10 |
1 files changed, 3 insertions, 7 deletions
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); |