From d75a6aeb4f07512d4154729db09d1310a58840b1 Mon Sep 17 00:00:00 2001 From: Ernestas Kulik <ernestask@gnome.org> Date: Mon, 19 Feb 2018 16:14:06 +0200 Subject: [PATCH 10/18] gio: tests: modules: declare _get_type prototype GCC complains about non-static functions being defined without a previous prototype, even if they themselves provide one. https://bugzilla.gnome.org/show_bug.cgi?id=793399 --- gio/tests/modules/test-module-a.c | 2 ++ gio/tests/modules/test-module-b.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gio/tests/modules/test-module-a.c b/gio/tests/modules/test-module-a.c index 0644fdc3a..6ac065d8a 100644 --- a/gio/tests/modules/test-module-a.c +++ b/gio/tests/modules/test-module-a.c @@ -32,6 +32,8 @@ typedef struct _TestAClass { GObjectClass parent_class; } TestAClass; +GType test_a_get_type (void); + G_DEFINE_TYPE (TestA, test_a, G_TYPE_OBJECT) static void diff --git a/gio/tests/modules/test-module-b.c b/gio/tests/modules/test-module-b.c index 5ec920887..21932287f 100644 --- a/gio/tests/modules/test-module-b.c +++ b/gio/tests/modules/test-module-b.c @@ -32,6 +32,8 @@ typedef struct _TestBClass { GObjectClass parent_class; } TestBClass; +GType test_b_get_type (void); + G_DEFINE_TYPE (TestB, test_b, G_TYPE_OBJECT) static void -- 2.13.6