I just posted a patch in:
http://bugzilla.gnome.org/show_bug.cgi?id=162582
to fix (or at least, workaround) the many additional warnings generated
by gcc4
when compiling gnucash from cvs head on Fedora development (FC3+).
I hope this is a suitable method for contributing patches to gnucash?
John Ellson