GNOME Bugzilla – Bug 631109
Fix some compiler warnings
Last modified: 2010-12-23 13:57:13 UTC
Created attachment 171508 [details] [review] add G_GNUC_UNUSED to unused function parameters Compiling libgda with -Wall and -Wextra passed to GCC produces lots of compiler warnings. Attaching four patches, split to make review easier, to reduce the number of warnings significantly. To replicate the compiler warnings setup, run make as below: make CFLAGS="-Wall -Wextra" It might be good to add a macro to configure.ac so that different warning levels can be selected (for developers and tarball users for example), like in regexxer and other packages: http://git.gnome.org/browse/regexxer/tree/configure.ac#n55 but for this to be useful the remaining warnings have to be fixed, as well as the warnings from generated code (or the warnings need to be disabled in that specific case).
Created attachment 171509 [details] [review] fix missing field initializer warnings (mostly)
Created attachment 171510 [details] [review] fix some signedness warnings
Created attachment 171511 [details] [review] miscellaneous fixes
Is any of this in the copy of sqlite? If so, those fixes should go to upstream sqlite.
All patches applied to git/master. As I'm currently reworking/cleaning the configure.ac files, I'll introduce a debug option so that different warning levels can be selected. Thanks a lot!
(In reply to comment #5) > All patches applied to git/master. As I'm currently reworking/cleaning the > configure.ac files, How is that going? Is it done already? > I'll introduce a debug option so that different warning > levels can be selected. Did this happen? Can David do it for you?
(In reply to comment #6) > (In reply to comment #5) > > All patches applied to git/master. As I'm currently reworking/cleaning the > > configure.ac files, > > How is that going? Is it done already? This is now done: all of the external and optional libraries are detected using code in separate M4 files. > > > I'll introduce a debug option so that different warning > > levels can be selected. > > Did this happen? Can David do it for you? I have not done it, and I would apreciate if David could do it, thanks!
(In reply to comment #7) > I have not done it, and I would apreciate if David could do it, thanks! See bug #342220, which could use your approval.
Patch in bug #342220 applied!