[ghex] Fix gcc warnings with -Wmissing-prototypes



commit 235100f2ed2afd192343413260a6acbe292c6dbd
Author: Kalev Lember <kalevlember gmail com>
Date:   Sun Jul 24 01:58:23 2011 +0300

    Fix gcc warnings with -Wmissing-prototypes
    
    accessiblegtkhexfactory.c:35:1: warning: no previous prototype for 'accessible_gtk_hex_factory_get_type' [-Wmissing-prototypes]
    findreplace.c:147:25: warning: no previous prototype for âcreate_advanced_find_add_dialogâ [-Wmissing-prototypes]
    findreplace.c:321:10: warning: no previous prototype for âadvanced_find_foreachfunc_cbâ [-Wmissing-prototypes]
    hex-dialog.c:73:7: warning: no previous prototype for âhex_dialog_get_typeâ [-Wmissing-prototypes]
    hex-dialog.c:118:12: warning: no previous prototype for âhex_dialog_newâ [-Wmissing-prototypes]

 src/accessiblegtkhexfactory.c |    2 +-
 src/accessiblegtkhexfactory.h |    2 +-
 src/findreplace.c             |    8 +++++---
 src/hex-dialog.c              |    4 ++--
 src/hex-dialog.h              |    4 ++--
 5 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/src/accessiblegtkhexfactory.c b/src/accessiblegtkhexfactory.c
index c6cbbb3..665d6f9 100644
--- a/src/accessiblegtkhexfactory.c
+++ b/src/accessiblegtkhexfactory.c
@@ -32,7 +32,7 @@ static AtkObject* accessible_gtk_hex_factory_create_accessible (GObject *obj);
 static GType accessible_gtk_hex_factory_get_accessible_type    (void);
 
 GType
-accessible_gtk_hex_factory_get_type ()
+accessible_gtk_hex_factory_get_type (void)
 {
 	static GType type = 0;
 
diff --git a/src/accessiblegtkhexfactory.h b/src/accessiblegtkhexfactory.h
index e57cf01..aa9d250 100644
--- a/src/accessiblegtkhexfactory.h
+++ b/src/accessiblegtkhexfactory.h
@@ -55,7 +55,7 @@ struct _AccessibleGtkHexFactoryClass
 GType accessible_gtk_hex_get_type (void);
 AtkObjectFactory *accessible_gtk_hex_factory_new (void);
 
-GType accessible_gtk_hex_factory_get_type ();
+GType accessible_gtk_hex_factory_get_type (void);
 
 #ifdef __cplusplus
 }
diff --git a/src/findreplace.c b/src/findreplace.c
index 3be861c..e0ad802 100644
--- a/src/findreplace.c
+++ b/src/findreplace.c
@@ -143,7 +143,7 @@ FindDialog *create_find_dialog()
 	return dialog;
 }
 
-AdvancedFind_AddDialog *create_advanced_find_add_dialog(AdvancedFindDialog *parent)
+static AdvancedFind_AddDialog *create_advanced_find_add_dialog(AdvancedFindDialog *parent)
 {
 	AdvancedFind_AddDialog *dialog = g_new0(AdvancedFind_AddDialog, 1);
 	GtkWidget *button, *frame, *sep;
@@ -317,8 +317,10 @@ static void delete_advanced_find_add_dialog(AdvancedFind_AddDialog *dialog)
 	g_free(dialog);
 }
 
-gboolean advanced_find_foreachfunc_cb(GtkTreeModel *model, GtkTreePath *path,
-									  GtkTreeIter *iter, gpointer data)
+static gboolean advanced_find_foreachfunc_cb (GtkTreeModel *model,
+                                              GtkTreePath  *path,
+                                              GtkTreeIter  *iter,
+                                              gpointer      data)
 {
 	AdvancedFind_ListData *udata;
 	GtkHex *gh = (GtkHex *)data;
diff --git a/src/hex-dialog.c b/src/hex-dialog.c
index 8933573..bdfcf24 100644
--- a/src/hex-dialog.c
+++ b/src/hex-dialog.c
@@ -70,7 +70,7 @@ static struct {
 
 
 
-GType hex_dialog_get_type ()
+GType hex_dialog_get_type (void)
 {
     static GType doc_type = 0;
 
@@ -115,7 +115,7 @@ static void hex_dialog_class_init (HexDialogClass *klass)
 {
 }
 
-HexDialog *hex_dialog_new()
+HexDialog *hex_dialog_new (void)
 {
     HexDialog *dialog;
 
diff --git a/src/hex-dialog.h b/src/hex-dialog.h
index 7b07fa4..574f5ac 100644
--- a/src/hex-dialog.h
+++ b/src/hex-dialog.h
@@ -83,8 +83,8 @@ struct _HexDialogClass
     GObjectClass parent_class;
 };
 
-GType        hex_dialog_get_type();
-HexDialog    *hex_dialog_new();
+GType        hex_dialog_get_type(void);
+HexDialog    *hex_dialog_new(void);
 GtkWidget    *hex_dialog_getview(HexDialog *);
 void         hex_dialog_updateview(HexDialog *dialog, HexDialogVal64 *val);
 



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