[gobject-introspection] tests: Fix declarations
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] tests: Fix declarations
- Date: Sat, 31 Mar 2018 00:54:04 +0000 (UTC)
commit 7e9c478104fd5e864bbcbcaa54634e8251588884
Author: Philip Chimento <philip endlessm com>
Date: Sun Mar 11 22:39:57 2018 -0700
tests: Fix declarations
Otherwise these will warn.
tests/scanner/regress.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c
index c9e39378..a940a199 100644
--- a/tests/scanner/regress.c
+++ b/tests/scanner/regress.c
@@ -3167,7 +3167,7 @@ regress_test_sub_obj_init (RegressTestSubObj *obj)
}
RegressTestObj*
-regress_test_sub_obj_new ()
+regress_test_sub_obj_new (void)
{
return g_object_new (REGRESS_TEST_TYPE_SUB_OBJ, NULL);
}
@@ -3482,6 +3482,8 @@ regress_test_fundamental_sub_object_new (const char * data)
#define regress_test_fundamental_hidden_sub_object_get_type \
_regress_test_fundamental_hidden_sub_object_get_type
+GType regress_test_fundamental_hidden_sub_object_get_type (void);
+
typedef struct _RegressTestFundamentalHiddenSubObject RegressTestFundamentalHiddenSubObject;
typedef struct _GObjectClass RegressTestFundamentalHiddenSubObjectClass;
struct _RegressTestFundamentalHiddenSubObject {
@@ -3887,15 +3889,14 @@ regress_test_skip_unannotated_callback (RegressTestCallback callback)
/* interface */
+typedef RegressTestInterfaceIface RegressTestInterfaceInterface;
+G_DEFINE_INTERFACE (RegressTestInterface, regress_test_interface, G_TYPE_OBJECT)
+
static void
regress_test_interface_default_init(RegressTestInterfaceIface *iface)
{
}
-typedef RegressTestInterfaceIface RegressTestInterfaceInterface;
-G_DEFINE_INTERFACE (RegressTestInterface, regress_test_interface, G_TYPE_OBJECT)
-
-
/* gobject with non-standard prefix */
G_DEFINE_TYPE(RegressTestWi8021x, regress_test_wi_802_1x, G_TYPE_OBJECT);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]