mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
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:222: warning: ISO C90 forbids mixed declarations and code
This commit is contained in:
parent
995de71550
commit
2cc79acc1a
1 changed files with 1 additions and 1 deletions
|
|
@ -218,8 +218,8 @@ static void compute_live_intervals(struct radeon_compiler *c,
|
|||
* the BGNLOOP instruction is used as the beginning. */
|
||||
if (inst->U.I.Opcode == RC_OPCODE_BGNLOOP && s->EndLoop < 0) {
|
||||
int loops = 1;
|
||||
s->BeginLoop = inst->IP;
|
||||
struct rc_instruction * tmp;
|
||||
s->BeginLoop = inst->IP;
|
||||
for(tmp = inst->Next;
|
||||
tmp != &s->C->Program.Instructions;
|
||||
tmp = tmp->Next) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue