[file-roller: 49/123] predefine fr_application_get_type to remove a compiler warning



commit 273703a94cd251789f20e4eb55e747f2c250bac1
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Jul 21 11:47:02 2012 +0200

    predefine fr_application_get_type to remove a compiler warning

 src/main.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 35b8006..bbafb02 100644
--- a/src/main.c
+++ b/src/main.c
@@ -476,6 +476,8 @@ static const GDBusInterfaceVTable interface_vtable = {
 /* -- main application -- */
 
 
+#define FR_APPLICATION(x) ((FrApplication *)(x))
+
 typedef struct {
 	GtkApplication __parent;
 	GDBusNodeInfo  *introspection_data;
@@ -486,9 +488,8 @@ typedef GtkApplicationClass FrApplicationClass;
 
 static gpointer fr_application_parent_class;
 
-
+GType fr_application_get_type (void); /* added to suppress a compiler warning */
 G_DEFINE_TYPE (FrApplication, fr_application, GTK_TYPE_APPLICATION)
-#define FR_APPLICATION(x) ((FrApplication *)(x))
 
 
 static void



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