[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: late declaration of variable (2.3, backglue.c)
Buchan Milne writes:
> I need the patch below (since 2.3.37, maybe before) to be able to compile
> backglue.c on gcc 2.9x.
> (...)
> - int rc;
> BackendDB *b0 = op->o_bd;
> op->o_bd = glue_back_select( b0, dn );
> + int rc;
That breaks on C90 compilers. Declaration after non-declaration in block.
Does it work to move 'int rc;' immediately after the b0 declaration instead?
Why are you using gcc 2.9x?
--
Hallvard