[gobject-introspection: 1/2] tests: Fix function incompatibility



commit 1ae981659683c941b4568ca0ee11a700d4f6ea47
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Jul 23 18:27:43 2018 +0200

    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

 tests/gimarshallingtests.c | 6 +++---
 1 file 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)
 {
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]