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
This commit is contained in:
Tim-Philipp Müller 2010-11-27 19:13:35 +00:00
parent c802bc7c26
commit 5cac987148

View file

@ -123,8 +123,7 @@ static void type_as_function ## _init (type *object, \
type ## Class *g_class);\ type ## Class *g_class);\
static parent_type ## Class *parent_class = NULL; \ static parent_type ## Class *parent_class = NULL; \
static void \ static void \
type_as_function ## _class_init_trampoline (gpointer g_class, \ type_as_function ## _class_init_trampoline (gpointer g_class) \
gpointer data) \
{ \ { \
parent_class = (parent_type ## Class *) \ parent_class = (parent_type ## Class *) \
g_type_class_peek_parent (g_class); \ g_type_class_peek_parent (g_class); \
@ -145,7 +144,7 @@ type_as_function ## _get_type (void) \
sizeof (type ## Class), \ sizeof (type ## Class), \
type_as_function ## _base_init, \ type_as_function ## _base_init, \
NULL, /* base_finalize */ \ NULL, /* base_finalize */ \
type_as_function ## _class_init_trampoline, \ (GClassInitFunc) type_as_function ## _class_init_trampoline, \
NULL, /* class_finalize */ \ NULL, /* class_finalize */ \
NULL, /* class_data */ \ NULL, /* class_data */ \
sizeof (type), \ sizeof (type), \