Follow-up Comment #1, patch #1701 (project freeciv):

this patch results in an error for me:


make[4]: Entering directory
`/home/matthias/data/git/freeciv.git/client/gui-gtk-2.0'
/bin/sh ../../libtool --preserve-dup-deps --tag=CC   --mode=compile gcc
-DHAVE_CONFIG_H -I. -I../..  -I. -I./.. -I./../include -I../../utility
-I../../common -I../../common/aicore -I./../agents -I/usr/include/gtk-2.0
-I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12   -I/usr/include/SDL
-D_GNU_SOURCE=1 -D_REENTRANT  -DLOCALEDIR="\"/usr/local/share/locale\""
-DDEFAULT_DATA_PATH="\".:data:~/.freeciv/2.3:/usr/local/share/freeciv\""
-DDEFAULT_SAVES_PATH="\"\""
-DDEFAULT_SCENARIO_PATH="\".:data/scenario:~/.freeciv/scenarios:/usr/local/share/freeciv/scenario\""
 -Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes
-Wmissing-declarations -Werror -Werror -Wall -Wpointer-arith -Wcast-align
-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
-Wnested-externs -Wl,--no-add-needed -g -O2 -MT cityrep.lo -MD -MP -MF
.deps/cityrep.Tpo -c -o cityrep.lo cityrep.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I./../include
-I../../utility -I../../common -I../../common/aicore -I./../agents
-I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/SDL
-D_GNU_SOURCE=1 -D_REENTRANT -DLOCALEDIR=\"/usr/local/share/locale\"
"-DDEFAULT_DATA_PATH=\".:data:~/.freeciv/2.3:/usr/local/share/freeciv\""
-DDEFAULT_SAVES_PATH=\"\"
"-DDEFAULT_SCENARIO_PATH=\".:data/scenario:~/.freeciv/scenarios:/usr/local/share/freeciv/scenario\""
-Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations
-Werror -Werror -Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes
-Wmissing-declarations -Wstrict-prototypes -Wnested-externs
-Wl,--no-add-needed -g -O2 -MT cityrep.lo -MD -MP -MF .deps/cityrep.Tpo -c
cityrep.c -o cityrep.o
cc1: warnings being treated as errors
cityrep.c: In function ‘create_city_report_dialog’:
cityrep.c:1139: error: passing argument 1 of ‘gtk_label_set_ellipsize’
from incompatible pointer type
make[4]: *** [cityrep.lo] Error 1
make[4]: Leaving directory
`/home/matthias/data/git/freeciv.git/client/gui-gtk-2.0'
make[3]: *** [all] Error 2


line 1139 is the new function call:


  gtk_label_set_ellipsize(city_total_buy_cost_label, PANGO_ELLIPSIZE_START);


Does the call needs some GTK macro?


    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?1701>

_______________________________________________
  Nachricht geschickt von/durch Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to