From: Masahiro Yamada Date: Fri, 21 Dec 2018 08:33:08 +0000 (+0900) Subject: kconfig: surround dbg_sym_flags with #ifdef DEBUG to fix gconf warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f222b7f43661c3dddd44ee493c16e04e8f231542;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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)