From: Brian Paul Date: Fri, 20 May 2011 03:23:39 +0000 (-0600) Subject: r300: move declaration before code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f59b321784e7c16bc91696303886c1ce7270960;p=mesa.git r300: move declaration before code --- diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_compiler_util.c b/src/mesa/drivers/dri/r300/compiler/radeon_compiler_util.c index c8001ba8c18..2742721f800 100644 --- a/src/mesa/drivers/dri/r300/compiler/radeon_compiler_util.c +++ b/src/mesa/drivers/dri/r300/compiler/radeon_compiler_util.c @@ -534,10 +534,10 @@ int rc_get_max_index( rc_register_file file) { struct max_data data; + struct rc_instruction * inst; data.Max = 0; data.HasFileType = 0; data.File = file; - struct rc_instruction * inst; for (inst = c->Program.Instructions.Next; inst != &c->Program.Instructions; inst = inst->Next) {