diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-11-27 19:13:35 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-11-29 12:29:10 +0000 |
commit | 5cac98714816b6c5f52caace9bf33146d9826d07 (patch) | |
tree | eb4f804856e29a0468c1ae19a91da90df32c9b72 | |
parent | c802bc7c26f98a9c74c0680ddce0b0ce3ad2bf2a (diff) |
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
-rw-r--r-- | gst/gstutils.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gst/gstutils.h b/gst/gstutils.h index fad4ff56b5..14d0f8a8b0 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), \ |