[glib] gio: tests: modules: declare _get_type prototype



commit 4f942122b7f49bc2f304fce9b31623889f0ff2ff
Author: Ernestas Kulik <ernestask gnome org>
Date:   Mon Feb 19 16:14:06 2018 +0200

    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


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