[dia] [warningectomy] no previous prototype for function



commit 014dd70b689abbdd85e97bdc4c9d906738fdd1a4
Author: Hans Breuer <hans breuer org>
Date:   Thu Oct 2 00:33:00 2014 +0200

    [warningectomy] no previous prototype for function
    
    diapatternselector.c:74:1: warning: no previous prototype for function 'dia_pattern_selector_get_type' 
[-Wmissing-prototypes]
    G_DEFINE_TYPE (DiaPatternSelector, dia_pattern_selector, GTK_TYPE_HBOX);
    ^
    /usr/include/glib-2.0/gobject/gtype.h:1325:43: note: expanded from macro 'G_DEFINE_TYPE'
                                                                ^
    /usr/include/glib-2.0/gobject/gtype.h:1465:60: note: expanded from macro 'G_DEFINE_TYPE_EXTENDED'
                                                                ^
    /usr/include/glib-2.0/gobject/gtype.h:1682:7: note: expanded from macro '_G_DEFINE_TYPE_EXTENDED_BEGIN'
    GType \
          ^
    <scratch space>:81:1: note: expanded from here
    dia_pattern_selector_get_type
    ^

 lib/diapatternselector.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/diapatternselector.c b/lib/diapatternselector.c
index 2c4660f..7b92a66 100644
--- a/lib/diapatternselector.c
+++ b/lib/diapatternselector.c
@@ -71,6 +71,8 @@ dia_pattern_selector_class_init (DiaPatternSelectorClass *klass)
   object_class->finalize = dia_pattern_selector_finalize;
 }
 
+static GType dia_pattern_selector_get_type (void);
+ 
 G_DEFINE_TYPE (DiaPatternSelector, dia_pattern_selector, GTK_TYPE_HBOX);
 
 /* GUI stuff - not completely done yet 


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