diff options
author | Florian Müllner <fmuellner@gnome.org> | 2018-07-23 18:27:43 +0200 |
---|---|---|
committer | Florian Müllner <fmuellner@gnome.org> | 2018-07-23 18:39:46 +0200 |
commit | 1ae981659683c941b4568ca0ee11a700d4f6ea47 (patch) | |
tree | 8e2309456a96de68606aefc2a1004f2d2a89ad28 /tests/gimarshallingtests.c | |
parent | fc3b9c72841b00db7a594098fe7b3c245ffdb6c8 (diff) | |
download | gobject-introspection-1ae981659683c941b4568ca0ee11a700d4f6ea47.tar.gz |
tests: Fix function incompatibility
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
Diffstat (limited to 'tests/gimarshallingtests.c')
-rw-r--r-- | tests/gimarshallingtests.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) { } |