Hi! I think this introduced a "might be used uninitialized" warning in src/gnome/top-level.c with my particular version of gcc.
Initializing *file_guid with NULL in gnc_restore_all_state() fixes the warning, see below. Merry Christmas, Herbert. diff --git a/src/gnome/top-level.c b/src/gnome/top-level.c index 948f875..f9043e4 100644 --- a/src/gnome/top-level.c +++ b/src/gnome/top-level.c @@ -241,7 +241,7 @@ static void gnc_restore_all_state (gpointer session, gpointer unused) { GKeyFile *keyfile = NULL; - gchar *file_guid; + gchar *file_guid = NULL; GError *error = NULL; keyfile = gnc_state_load (session); Am 23.12.2013 21:33, schrieb Geert Janssens:
Author: gjanssens Date: 2013-12-23 15:33:02 -0500 (Mon, 23 Dec 2013) New Revision: 23602 Trac: http://svn.gnucash.org/trac/changeset/23602 Modified: gnucash/trunk/src/gnome-utils/dialog-options.c gnucash/trunk/src/gnome/top-level.c Log: Fix some warnings while creating a new book _______________________________________________ gnucash-patches mailing list gnucash-patc...@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-patches
_______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel