compile error r19409

Geert Janssens janssens-geert at
Fri Aug 6 10:24:49 EDT 2010

On Friday 6 August 2010, Herbert Thoma wrote:
> Hi!
> I get a compiler error in r19409:
> cc1: warnings being treated as errors
> dialog-file-access.c: In function ‘gnc_ui_file_access’:
> dialog-file-access.c:253: error: ‘gconf_section’ may be used uninitialized
>  in this function make[5]: *** [dialog-file-access.lo] Fehler 1
> make[5]: Leaving directory
>  `/home/tma/gnucash/gnucash_cvs/gnucash_work/src/gnome-utils'
> Initializing gconf_section with NULL fixes the warning. I don't
> know if this is a real problem and if the fix will fix the real problem, if
>  any. May be there should be a default section in the switch statement
>  later on.
>  Herbert.

Thanks for reporting this. Your fix should be sufficient. The g_return_if_fail 
together with the switch statement below ensures there is no way gconf_section 
is not set properly (unless of course someone would alter one and not the 

I have applied the correction.


More information about the gnucash-devel mailing list