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
This commit is contained in:
Ernestas Kulik 2018-02-19 16:14:06 +02:00 committed by Philip Withnall
parent 609a28c0d4
commit 4f942122b7
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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