From: Vinson Lee Date: Wed, 29 Sep 2010 21:22:20 +0000 (-0700) Subject: r300/compiler: Move declaration before code. X-Git-Tag: mesa-7.10~1151^2~502 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02b8fb3ed5ac9f3be34b9822c78fa971dfee274d;p=platform%2Fupstream%2Fmesa.git r300/compiler: Move declaration before code. Fixes this GCC warning on linux-x86 build. r3xx_vertprog.c: In function ‘ei_if’: r3xx_vertprog.c:396: warning: ISO C90 forbids mixed declarations and code --- diff --git a/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c b/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c index 0878571..d7d49e5 100644 --- a/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c +++ b/src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c @@ -392,9 +392,9 @@ static void ei_if(struct r300_vertex_program_compiler * compiler, * don't already have one. */ if (!compiler->PredicateMask) { unsigned int writemasks[RC_REGISTER_MAX_INDEX]; - memset(writemasks, 0, sizeof(writemasks)); struct rc_instruction * inst; unsigned int i; + memset(writemasks, 0, sizeof(writemasks)); for(inst = compiler->Base.Program.Instructions.Next; inst != &compiler->Base.Program.Instructions; inst = inst->Next) {