summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-11-24 23:00:03 -0800
committerVinson Lee <[email protected]>2010-11-24 23:00:03 -0800
commit995de71550d124dd93186d7264b2e6fc34a73d57 (patch)
treef9c1cabedda9a26842f84dc6c3df1c60ee75f1b6 /src/mesa
parentba1128db4582d8c54834b771749ee503738243fc (diff)
r300/compiler: Move declaration before code.
Fixes this GCC warning with linux-x86 build. radeon_pair_regalloc.c: In function ‘compute_live_intervals’: radeon_pair_regalloc.c:221: warning: ISO C90 forbids mixed declarations and code
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/r300/compiler/radeon_pair_regalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_pair_regalloc.c b/src/mesa/drivers/dri/r300/compiler/radeon_pair_regalloc.c
index 3f880c88fa7..3874c7e4189 100644
--- a/src/mesa/drivers/dri/r300/compiler/radeon_pair_regalloc.c
+++ b/src/mesa/drivers/dri/r300/compiler/radeon_pair_regalloc.c
@@ -217,8 +217,8 @@ static void compute_live_intervals(struct radeon_compiler *c,
* instruction is used as the end of the live interval and
* the BGNLOOP instruction is used as the beginning. */
if (inst->U.I.Opcode == RC_OPCODE_BGNLOOP && s->EndLoop < 0) {
- s->BeginLoop = inst->IP;
int loops = 1;
+ s->BeginLoop = inst->IP;
struct rc_instruction * tmp;
for(tmp = inst->Next;
tmp != &s->C->Program.Instructions;