[gnome-commander/ConvertWarningsToErrors] src/gnome-cmd-main-win.cc: fix for -Wmissing-declarations



commit a71876048191c17dc487ebda1bb0bfc5daaec6fc
Author: Mamoru TASAKA <mtasaka fedoraproject org>
Date:   Mon Apr 24 13:11:54 2017 +0900

    src/gnome-cmd-main-win.cc: fix for -Wmissing-declarations
    
    src/gnome-cmd-main-win.cc:131:6: error: no previous declaration for 'gint 
gnome_cmd_key_snooper(GtkWidget*, GdkEventKey*, GnomeCmdMainWin*)' [-Werror=missing-declarations]
    
    No prototype appears in headers, so make this static.

 src/gnome-cmd-main-win.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-main-win.cc b/src/gnome-cmd-main-win.cc
index ecf06fb..9adecf4 100644
--- a/src/gnome-cmd-main-win.cc
+++ b/src/gnome-cmd-main-win.cc
@@ -128,7 +128,7 @@ static GtkTooltips *toolbar_tooltips = NULL;
 static void gnome_cmd_main_win_real_switch_fs (GnomeCmdMainWin *mw, GnomeCmdFileSelector *fs);
 
 
-gint gnome_cmd_key_snooper(GtkWidget *grab_widget, GdkEventKey *event, GnomeCmdMainWin *mw)
+static gint gnome_cmd_key_snooper(GtkWidget *grab_widget, GdkEventKey *event, GnomeCmdMainWin *mw)
 {
     g_return_val_if_fail (mw!=NULL, FALSE);
 


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