After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 325429 - GST_BOILERPLATE_FULL can't be used when compiling with -Wmissing-prototypes
GST_BOILERPLATE_FULL can't be used when compiling with -Wmissing-prototypes
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.10.0
Other Linux
: Normal normal
: 0.10.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-01-01 05:56 UTC by James "Doc" Livingston
Modified: 2006-01-02 20:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to fix (406 bytes, patch)
2006-01-01 05:58 UTC, James "Doc" Livingston
committed Details | Review

Description James "Doc" Livingston 2006-01-01 05:56:30 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.
Comment 1 James "Doc" Livingston 2006-01-01 05:58:45 UTC
Created attachment 56621 [details] [review]
patch to fix

This is a trivial patch to add the necessary prototype to the macro definition.
Comment 2 Tim-Philipp Müller 2006-01-02 20:28:05 UTC
Fixed in CVS:

2006-01-02  James Livingston  <jrl at ids dot org dot au>

       * gst/gstutils.h:
         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).

Cheers
 -Tim