From 5cac98714816b6c5f52caace9bf33146d9826d07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 27 Nov 2010 19:13:35 +0000 Subject: [PATCH] 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 file 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), \