From 1ae981659683c941b4568ca0ee11a700d4f6ea47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 23 Jul 2018 18:27:43 +0200 Subject: tests: Fix function incompatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Casting a function type to a type with more parameters is invalid and triggers a warning on some compilers: installed-tests/gimarshallingtests.c: In function ‘gi_marshalling_tests_interface_get_type’: error: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’ [-Werror=cast-function-type] Add those additional parameters to shut up the warnings. https://gitlab.gnome.org/GNOME/gobject-introspection/merge_requests/53 --- tests/gimarshallingtests.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/gimarshallingtests.c') diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c index 0ddaed71..4005acae 100644 --- a/tests/gimarshallingtests.c +++ b/tests/gimarshallingtests.c @@ -4859,7 +4859,7 @@ static void gi_marshalling_tests_sub_sub_object_class_init (GIMarshallingTestsSu /* Interfaces */ static void -gi_marshalling_tests_interface_class_init (void *g_iface) +gi_marshalling_tests_interface_class_init (void *g_iface, void *data) { } @@ -4938,7 +4938,7 @@ gi_marshalling_tests_interface_impl_get_as_interface (GIMarshallingTestsInterfac } static void -gi_marshalling_tests_interface2_class_init (void *g_iface) +gi_marshalling_tests_interface2_class_init (void *g_iface, void *data) { } @@ -4959,7 +4959,7 @@ gi_marshalling_tests_interface2_get_type (void) } static void -gi_marshalling_tests_interface3_class_init (void *g_iface) +gi_marshalling_tests_interface3_class_init (void *g_iface, void *data) { } -- cgit v1.2.1