DBI backend warnings with Glib 2.16.3

David Reiser dbreiser at earthlink.net
Mon Jul 14 01:21:23 EDT 2008


gnc-backend-dbi.c needs the tweak to stomp out GType warnings:

gnc-backend-dbi.c:948: warning: format ‘%d’ expects type ‘int’, but  
argument 5 has type ‘GType’
gnc-backend-dbi.c:964: warning: format ‘%d’ expects type ‘int’, but  
argument 5 has type ‘GType’
gnc-backend-dbi.c:980: warning: format ‘%d’ expects type ‘int’, but  
argument 5 has type ‘GType’

Based on the fix either you or Derek suggested last time, replacing  
the PERR on those lines with
PERR( "Unknown GType: '%s'\n", g_type_name(G_VALUE_TYPE(type)));

Works for me.

Does DBI protect us well enough that a user can change the database  
backend without recompiling gnucash? (Presuming, of course, that any  
dbi drivers added later get installed in the same place gnucash finds/ 
assigns the original set used.)

Dave
--
David Reiser
dbreiser at earthlink.net






More information about the gnucash-devel mailing list