utils: avoid 'unused argument' warnings caused by GST_BOILERPLATE_FULL
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 27 Nov 2010 19:13:35 +0000 (19:13 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 29 Nov 2010 12:29:10 +0000 (12:29 +0000)
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

index fad4ff56b54627f0b48d90918d58e7ffaf17376e..14d0f8a8b08fa9156abf542eb3f17f784498c007 100644 (file)
@@ -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),                                                 \