summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-12-21 11:33:08 +0300
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-12-28 16:22:39 +0300
commitf222b7f43661c3dddd44ee493c16e04e8f231542 (patch)
tree9e807945ba08d5313deb58c0f5146ffe69b463ac /scripts
parent3b541978562a0f553b0c0253d927d55612dd97b1 (diff)
downloadlinux-f222b7f43661c3dddd44ee493c16e04e8f231542.tar.xz
kconfig: surround dbg_sym_flags with #ifdef DEBUG to fix gconf warning
Fix the following warning: no previous prototype for ‘dbg_sym_flags’ [-Wmissing-prototypes] Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/gconf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/kconfig/gconf.c b/scripts/kconfig/gconf.c
index b3d438c531fc..5d4ecf309ee4 100644
--- a/scripts/kconfig/gconf.c
+++ b/scripts/kconfig/gconf.c
@@ -75,7 +75,7 @@ static gchar **fill_row(struct menu *menu);
static void conf_changed(void);
/* Helping/Debugging Functions */
-
+#ifdef DEBUG
static const char *dbg_sym_flags(int val)
{
static char buf[256];
@@ -105,6 +105,7 @@ static const char *dbg_sym_flags(int val)
return buf;
}
+#endif
static void replace_button_icon(GladeXML *xml, GdkDrawable *window,
GtkStyle *style, gchar *btn_name, gchar **xpm)