Hi,
when compiling the current Gnucash 2.2 branch I got following error:
gcc -DHAVE_CONFIG_H -I. -I. -I../../..
-DG_LOG_DOMAIN=\"gnc.import.aqbanking\" -I../../../src
-I../../../src/import-export -I../../../src/gnome
-I../../../src/register/ledger-core
-I../../../src/register/register-gnome
-I../../../src/register/register-core -I../../../src/gnome-utils
-I../../../src/app-utils -I../../../src/engine -I../../../src/core-utils
-I../../../src/gnc-module -DORBIT2=1 -pthread
-I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0
-I/usr/include/libart-2.0 -I/usr/include/gconf/2
-I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0
-I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0
-I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libpng12
-I/usr/include/libxml2 -I/usr/include/libglade-2.0
-I/usr/include/gtk-2.0 -I/usr/include/libxml2 -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/include/freetype2 -I/usr/include/libpng12
-I../../../lib/libqof/qof -I../../../lib/libqof/qof -pthread
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/gwenhywfar3 -Werror -Wdeclaration-after-statement
-Wno-pointer-sign -D_FORTIFY_SOURCE=2 -g -O2 -Wall -Wunused
-Wmissing-prototypes -Wmissing-declarations -Wno-unused -MT
gnc-ab-transfer.lo -MD -MP -MF .deps/gnc-ab-transfer.Tpo -c
gnc-ab-transfer.c -fPIC -DPIC -o .libs/gnc-ab-transfer.o
cc1: warnings being treated as errors
gnc-ab-transfer.c: In function 'gnc_ab_maketrans':
gnc-ab-transfer.c:89: warning: 'successful' may be used uninitialized in
this function
make[5]: *** [gnc-ab-transfer.lo] Fehler 1
make[5]: Leaving directory
`/home/micha/dev/gc/2.2.6/src/import-export/aqbanking'
make[4]: *** [all-recursive] Fehler 1
make[4]: Leaving directory
`/home/micha/dev/gc/2.2.6/src/import-export/aqbanking'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/home/micha/dev/gc/2.2.6/src/import-export'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/micha/dev/gc/2.2.6/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/micha/dev/gc/2.2.6'
make: *** [all] Fehler 2
The attached patch should fix that.
Regards
Micha
Index: src/import-export/aqbanking/gnc-ab-transfer.c
===================================================================
--- src/import-export/aqbanking/gnc-ab-transfer.c (Revision 17435)
+++ src/import-export/aqbanking/gnc-ab-transfer.c (Arbeitskopie)
@@ -86,7 +86,7 @@
GncABTransDialog *dialog = NULL;
GList *templates = NULL;
GncABTransDialog *td = NULL;
- gboolean successful;
+ gboolean successful = FALSE;
gboolean aborted = FALSE;
g_return_if_fail(parent && gnc_acc);
_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel