Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2004:
[Freeciv-Dev] (PR#8661) compile problem in gui-stuff.c
Home

[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]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#8661) compile problem in gui-stuff.c
From: "Brett Albertson" <brett.albertson@xxxxxxxxxxxx>
Date: Tue, 4 May 2004 04:45:00 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8661 >

> [jdorje - Tue May 04 04:15:26 2004]:
> 
> 
> That's a very ugly "fix".  It doesn't actually fix anything, just hides
> the problem.
> 
> Can you be more specific about the error?  What output does make give
> you?  What is the exact line of compilation (what flags is gcc being
given)?
> 
> I suspect that you are compiling with -Werror, and on your system
> gettext returns a const char *.  Seems to me we should treat all
> gettext-generated strings as const chars!  But we don't, and in a lot
> more places than just client/gui-gtk/gui_stuff.c.
> 
> jason
> 
> 

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.

-- 
Brett Albertson
brett.albertson@xxxxxxxxxxxx


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