[gst-cvs] gstreamer: utils: avoid 'unused argument' warnings caused by GST_BOILERPLATE_FULL
Tim Müller
tpm at kemper.freedesktop.org
Mon Nov 29 04:34:25 PST 2010
Module: gstreamer
Branch: master
Commit: 5cac98714816b6c5f52caace9bf33146d9826d07
URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=5cac98714816b6c5f52caace9bf33146d9826d07
Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date: Sat Nov 27 19:13:35 2010 +0000
utils: avoid 'unused argument' warnings caused by GST_BOILERPLATE_FULL
The unused data parameter in the class_init trampoline function
seems to cause warnings with some c++ compilers.
https://bugzilla.gnome.org/show_bug.cgi?id=635869
---
gst/gstutils.h | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/gst/gstutils.h b/gst/gstutils.h
index fad4ff5..14d0f8a 100644
--- a/gst/gstutils.h
+++ b/gst/gstutils.h
@@ -123,8 +123,7 @@ static void type_as_function ## _init (type *object, \
type ## Class *g_class);\
static parent_type ## Class *parent_class = NULL; \
static void \
-type_as_function ## _class_init_trampoline (gpointer g_class, \
- gpointer data) \
+type_as_function ## _class_init_trampoline (gpointer g_class) \
{ \
parent_class = (parent_type ## Class *) \
g_type_class_peek_parent (g_class); \
@@ -145,7 +144,7 @@ type_as_function ## _get_type (void) \
sizeof (type ## Class), \
type_as_function ## _base_init, \
NULL, /* base_finalize */ \
- type_as_function ## _class_init_trampoline, \
+ (GClassInitFunc) type_as_function ## _class_init_trampoline, \
NULL, /* class_finalize */ \
NULL, /* class_data */ \
sizeof (type), \
More information about the Gstreamer-commits
mailing list