GNOME Bugzilla – Bug 611736
/usr/include/gtk-2.0/gtk/gtkitemfactory.h:47: warning: function declaration isn’t a prototype
Last modified: 2010-03-08 17:42:44 UTC
I get a compiler warning: /usr/include/gtk-2.0/gtk/gtkitemfactory.h:47: warning: function declaration isn’t a prototype The fix is very easy and simple. replace the line: typedef void (*GtkItemFactoryCallback) (); by: typedef void (*GtkItemFactoryCallback) (void); Just add "void" inside the parenthesis. I checked the "bug" is still present in GIT http://git.gnome.org/browse/gtk+/tree/gtk/gtkitemfactory.h#n47
The prototype is preceeded by the comment: >/* We use () here to mean unspecified arguments. This is deprecated > * as of C99, but we can't change it without breaking compatibility. I agree it would be great to fix this, since it blocks other packages that do -Werror and makes compiler noise for no reason, but not sure if there is a way that won't make things even worse:(
I wonder if this could be fixed for GTK 3.0 as we break everything anyway. :-P
it's solved in the gtk-2-90 branch, where all the deprecated API (including GtkItemFactor) has been removed.
not fixable in 2.x