GNOME Bugzilla – Bug 321229
fixes for GCC4.1 warnings
Last modified: 2011-02-18 15:49:17 UTC
Distribution/Version: SuSE Linux Edge Attached patches fixes some gcc-4.1 warnings. Another patch can be found in bug 316221 Applied to version glib-2.8.3
Created attachment 54637 [details] [review] glib-atomic.patch Fixes strict aliasing for gatomic.c. Patch from Andreas Schwab.
Created attachment 54638 [details] [review] glib-strict-aliasing.patch Fixes strict aliasing warnings in libmoduletestplugin_a.c.
Created attachment 54639 [details] [review] glib-sentinel.patch Adds sentinel check to g_object_new.
The last patch doesn't work, since it is common to write g_object_new (NULL) instead of g_object_new (NULL, NULL) This is an unfortunate restriction of the sentinel attribute in gcc which prevents its use in many places in glib and gtk.
Well, g_object_new(NULL) is wrong, since the function takes at least two arguments. I think g_object_new should have been defined without the second argument in the first place, right?
Committed, except for the sentinel patch.