From: José Fonseca Date: Tue, 6 Jan 2009 19:18:13 +0000 (+0000) Subject: mesa: Move var declaration to top of scope. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a86776dba4cb328f5ed5f97c46d262ee6b90456a;p=mesa.git mesa: Move var declaration to top of scope. --- diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c index d8aefd64950..b8044b10600 100644 --- a/src/mesa/shader/slang/slang_compile.c +++ b/src/mesa/shader/slang/slang_compile.c @@ -1470,9 +1470,9 @@ parse_expression(slang_parse_ctx * C, slang_output_ctx * O, RETURN0; } else { + slang_operation array_size; array_constructor = GL_TRUE; /* parse the array constructor size */ - slang_operation array_size; slang_operation_construct(&array_size); if (!parse_expression(C, O, &array_size)) { slang_operation_destruct(&array_size);