GNOME Bugzilla – Bug 325429
GST_BOILERPLATE_FULL can't be used when compiling with -Wmissing-prototypes
Last modified: 2006-01-02 20:28:05 UTC
Code using the GST_BOILERPLATE_FULL macro doesn't compile when using the -Wmissing-prototype option of gcc. This is because it creates the non-void function "type_as_function ## _get_type" without a prototype.
This can be seen by tring to compile Rhythmbox using the daap patch on bug 309609, with --enable-more-warnings passed to configure.
Created attachment 56621 [details] [review]
patch to fix
This is a trivial patch to add the necessary prototype to the macro definition.
Fixed in CVS:
2006-01-02 James Livingston <jrl at ids dot org dot au>
Add prototype for _get_type() function to GST_BOILERPLATE_FULL
macro, so that gcc doesn't complain if the -Wmissing-prototypes
compiler switch is being used (#325429).