Hi, I've tried to work around the 'const' error associated with GNCPrintAmountInfo. I've essentially marched my way through removing const's including the one in
typedef struct _GNCPrintAmountInfo and as a result come up with another warning that appears related, but I don't know. It is entirely possible that I've cause this warning by my own hackery. please advise. (my biggest problem is that I don't understand the language of these warnings...) make[2]: Entering directory `/home/andrew/src/gnc-warnings/src/app-utils' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN=\"gnc.app-util\" -I../../lib/libc -I../../src -I../../src -I../../src/gnc-module -I../../src/calculation \ -I../../src/core-utils -I../../src/engine -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../../lib/libqof/qof -I../../lib/libqof/qof -DORBIT2=1 -pthread -I/usr/include/gconf/2 -I/usr/\ include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/incl\ ude/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -Werror -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -g -O2 -Wall -Wunused -Wmissing-prot\ otypes -Wmissing-declarations -Wno-unused -MT gnc-ui-util.lo -MD -MP -MF .deps/gnc-ui-util.Tpo -c -o gnc-ui-util.lo gnc-ui-util.c gcc -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN=\"gnc.app-util\" -I../../lib/libc -I../../src -I../../src -I../../src/gnc-module -I../../src/calculation -I../../src/core-utils -I../../src/engine -pthrea\ d -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../../lib/libqof/qof -I../../lib/libqof/qof -DORBIT2=1 -pthread -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib\ /glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/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/lib/glib-2.0/include -I/usr/includ\ e/freetype2 -I/usr/include/libpng12 -Werror -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wno-unused -MT gnc-ui-u\ til.lo -MD -MP -MF .deps/gnc-ui-util.Tpo -c gnc-ui-util.c -fPIC -DPIC -o .libs/gnc-ui-util.o cc1: warnings being treated as errors gnc-ui-util.c: In function 'gnc_commodity_print_info': gnc-ui-util.c:1053: warning: assignment discards qualifiers from pointer target type make[2]: *** [gnc-ui-util.lo] Error 1 make[2]: Leaving directory `/home/andrew/src/gnc-warnings/src/app-utils' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/andrew/src/gnc-warnings/src/app-utils' make: *** [all-recursive] Error 1 A
signature.asc
Description: Digital signature
_______________________________________________ gnucash-devel mailing list [email protected] https://lists.gnucash.org/mailman/listinfo/gnucash-devel
