[Freeciv-Dev] (PR#8661) compile problem in gui-stuff.c
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=8661 >
> [bretta - Tue May 04 11:45:00 2004]:
> I do compile with -Werror. Here is the exact output:
>
> make[1]: Entering directory `/var/tmp/freeciv/client/gui-gtk'
> if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I./.. -I../../utility
> -I./../include -I../../common -I../../common/aicore -I../../intl
> -I./../agents -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2
> -I/usr/local/lib/glib/include -I/usr/openwin/include
> -I/usr/local/include -I/usr/openwin/include -g -O2 -Werror -Wall
> -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations
> -MT gui_stuff.o -MD -MP -MF ".deps/gui_stuff.Tpo" -c -o gui_stuff.o
> gui_stuff.c; \
> then mv -f ".deps/gui_stuff.Tpo" ".deps/gui_stuff.Po"; else rm -f
> ".deps/gui_stuff.Tpo"; exit 1; fi
> gui_stuff.c: In function `intl_slist':
> gui_stuff.c:171: warning: assignment discards qualifiers from pointer
> target type
> make[1]: *** [gui_stuff.o] Error 1
> make[1]: Leaving directory `/var/tmp/freeciv/client/gui-gtk'
> make: *** [all] Error 2
>
> without the -Werror, it will compile and give a warning.
But surely even if you fix this line it still fails in a dozen other places?
Can you send the preprocessor output of this compilation? I think you
can just take the above gcc line and stick a -E in there somewhere.
Then gui_stuff.o will contain the preprocessed code.
jason
|
|