Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2002:
[Freeciv-Dev] Re: (PR#2463)
Home

[Freeciv-Dev] Re: (PR#2463)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#2463)
From: "Raimar Falke via RT" <rt@xxxxxxxxxxxxxx>
Date: Tue, 3 Dec 2002 10:45:37 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Sun, Dec 01, 2002 at 01:54:25AM -0800, Jason Short via RT wrote:
> 
> SDL configuration (for sound and GUI) will fail if CFLAGS is set to
> check for strict errors (e.g., CFLAGS="-Werror -Wmissing-prototypes").
> 
> This can be improved by editing m4/sdl.m4.

If we start with this we have to go the whole way:

$ CFLAGS="-Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes 
-Wmissing-declarations -Werror -Wstrict-prototypes -Wnested-externs" 
./autogen.sh 

...
checking whether the C compiler (gcc -Wall -Wpointer-arith -Wcast-align 
-Wmissing-prototypes -Wmissing-declarations -Werror -Wstrict-prototypes 
-Wnested-externs ) works... no
configure: error: installation or configuration problem: C compiler cannot 
create executables.
...


config.log says:
...
cc1: warnings being treated as errors
configure:1271: warning: return type defaults to `int'
configure:1271: warning: function declaration isn't a prototype
configure: failed program was:

#line 1269 "configure"
#include "confdefs.h"

main(){return(0);}

We don't want to fix all of this IMHO. And freeciv compiles without
errors with the big CFLAGS setting from above.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 1 + 1 = 3, for large values of 1



[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#2463), Jason Short via RT, 2002/12/01
    • Message not available
      • [Freeciv-Dev] Re: (PR#2463), Raimar Falke via RT <=