Re: [Freeciv-Dev] cvs broken with CFLAGS -O0 -Wall -pedantic -DDEBUG -g
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Nicolas Brunel wrote:
>
> with the flags I use, freeciv cvs doesn't compile.
> In the macro ATHING_INIT, sz can't be known at compilation time.
> I suppose David use one of gcc extra possibility.
Hah, thanks.
> I prefer that we use standard C as one day we may stop using gcc.
Yes, it is existing and longstanding policy that freeciv not
require gcc. (Occasionally I check using Solaris cc, but I
missed this one).
> Here is a patch to fix(change) this :
>
> The main drawback of my patch is that we can't any more use two
> ATHING_INIT in a row. :-(
Yeah, and it requires ATHING_INIT be the last variable declaration.
I preferred just to get rid of ATHING_INIT and require calling
ath_init() instead, but thanks.
Regards,
-- David
|
|