[Freeciv-Dev] Re: (PR#2463)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
- [Freeciv-Dev] (PR#2463), Jason Short via RT, 2002/12/01
- Message not available
- [Freeciv-Dev] Re: (PR#2463),
Raimar Falke via RT <=
|
|