mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
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:
parent
c802bc7c26
commit
5cac987148
1 changed files with 2 additions and 3 deletions
|
@ -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), \
|
||||
|
|
Loading…
Reference in a new issue