Complete.Org: Mailing Lists: Archives: freeciv-dev: August 1999:
Re: [Freeciv-Dev] cvs broken with CFLAGS -O0 -Wall -pedantic -DDEBUG -g
Home

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]
To: brunel@xxxxxxxxxxxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] cvs broken with CFLAGS -O0 -Wall -pedantic -DDEBUG -g
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Sun, 8 Aug 1999 14:05:51 +1000 (EST)

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

[Prev in Thread] Current Thread [Next in Thread]