diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-12-21 03:33:06 -0500 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-12-28 08:22:39 -0500 |
commit | 9abe42371b44ef3e10e068d3e461c3a97192fb46 (patch) | |
tree | be8d54570c276f400e9ea66dd53dedc5b69d07e5 /scripts/kconfig | |
parent | cbafbf7f551c3a03fb9440932f1ca13056ca40a6 (diff) |
kconfig: add static qualifiers to fix gconf warnings
Add "static" to functions that are locally used in gconf.c
This fixes some "no previous prototype for ..." warnings.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r-- | scripts/kconfig/gconf.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/scripts/kconfig/gconf.c b/scripts/kconfig/gconf.c index 14fc0fa5e68c..2d4e5a1e3a30 100644 --- a/scripts/kconfig/gconf.c +++ b/scripts/kconfig/gconf.c | |||
@@ -76,7 +76,7 @@ static void conf_changed(void); | |||
76 | 76 | ||
77 | /* Helping/Debugging Functions */ | 77 | /* Helping/Debugging Functions */ |
78 | 78 | ||
79 | const char *dbg_sym_flags(int val) | 79 | static const char *dbg_sym_flags(int val) |
80 | { | 80 | { |
81 | static char buf[256]; | 81 | static char buf[256]; |
82 | 82 | ||
@@ -106,8 +106,8 @@ const char *dbg_sym_flags(int val) | |||
106 | return buf; | 106 | return buf; |
107 | } | 107 | } |
108 | 108 | ||
109 | void replace_button_icon(GladeXML * xml, GdkDrawable * window, | 109 | static void replace_button_icon(GladeXML *xml, GdkDrawable *window, |
110 | GtkStyle * style, gchar * btn_name, gchar ** xpm) | 110 | GtkStyle *style, gchar *btn_name, gchar **xpm) |
111 | { | 111 | { |
112 | GdkPixmap *pixmap; | 112 | GdkPixmap *pixmap; |
113 | GdkBitmap *mask; | 113 | GdkBitmap *mask; |
@@ -125,7 +125,7 @@ void replace_button_icon(GladeXML * xml, GdkDrawable * window, | |||
125 | } | 125 | } |
126 | 126 | ||
127 | /* Main Window Initialization */ | 127 | /* Main Window Initialization */ |
128 | void init_main_window(const gchar * glade_file) | 128 | static void init_main_window(const gchar *glade_file) |
129 | { | 129 | { |
130 | GladeXML *xml; | 130 | GladeXML *xml; |
131 | GtkWidget *widget; | 131 | GtkWidget *widget; |
@@ -187,7 +187,7 @@ void init_main_window(const gchar * glade_file) | |||
187 | gtk_widget_show(main_wnd); | 187 | gtk_widget_show(main_wnd); |
188 | } | 188 | } |
189 | 189 | ||
190 | void init_tree_model(void) | 190 | static void init_tree_model(void) |
191 | { | 191 | { |
192 | gint i; | 192 | gint i; |
193 | 193 | ||
@@ -217,7 +217,7 @@ void init_tree_model(void) | |||
217 | model1 = GTK_TREE_MODEL(tree1); | 217 | model1 = GTK_TREE_MODEL(tree1); |
218 | } | 218 | } |
219 | 219 | ||
220 | void init_left_tree(void) | 220 | static void init_left_tree(void) |
221 | { | 221 | { |
222 | GtkTreeView *view = GTK_TREE_VIEW(tree1_w); | 222 | GtkTreeView *view = GTK_TREE_VIEW(tree1_w); |
223 | GtkCellRenderer *renderer; | 223 | GtkCellRenderer *renderer; |
@@ -259,7 +259,7 @@ static void renderer_edited(GtkCellRendererText * cell, | |||
259 | const gchar * path_string, | 259 | const gchar * path_string, |
260 | const gchar * new_text, gpointer user_data); | 260 | const gchar * new_text, gpointer user_data); |
261 | 261 | ||
262 | void init_right_tree(void) | 262 | static void init_right_tree(void) |
263 | { | 263 | { |
264 | GtkTreeView *view = GTK_TREE_VIEW(tree2_w); | 264 | GtkTreeView *view = GTK_TREE_VIEW(tree2_w); |
265 | GtkCellRenderer *renderer; | 265 | GtkCellRenderer *renderer; |
@@ -1209,8 +1209,8 @@ static GtkTreeIter found; | |||
1209 | /* | 1209 | /* |
1210 | * Find a menu in the GtkTree starting at parent. | 1210 | * Find a menu in the GtkTree starting at parent. |
1211 | */ | 1211 | */ |
1212 | GtkTreeIter *gtktree_iter_find_node(GtkTreeIter * parent, | 1212 | static GtkTreeIter *gtktree_iter_find_node(GtkTreeIter *parent, |
1213 | struct menu *tofind) | 1213 | struct menu *tofind) |
1214 | { | 1214 | { |
1215 | GtkTreeIter iter; | 1215 | GtkTreeIter iter; |
1216 | GtkTreeIter *child = &iter; | 1216 | GtkTreeIter *child = &iter; |
@@ -1421,7 +1421,7 @@ static void display_list(void) | |||
1421 | tree = tree2; | 1421 | tree = tree2; |
1422 | } | 1422 | } |
1423 | 1423 | ||
1424 | void fixup_rootmenu(struct menu *menu) | 1424 | static void fixup_rootmenu(struct menu *menu) |
1425 | { | 1425 | { |
1426 | struct menu *child; | 1426 | struct menu *child; |
1427 | static int menu_cnt = 0; | 1427 | static int menu_cnt = 0; |