From 7a37094054e33f54ecf06ca90f50a326778ecd52 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 18 Mar 2022 05:17:54 +0200 Subject: [PATCH 50/50] gtk4: Fix build without --enable-debug See osdn #44134 Signed-off-by: Marko Lindqvist --- client/gui-gtk-4.0/menu.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/client/gui-gtk-4.0/menu.c b/client/gui-gtk-4.0/menu.c index 5cca3320e9..74bbff01ad 100644 --- a/client/gui-gtk-4.0/menu.c +++ b/client/gui-gtk-4.0/menu.c @@ -76,17 +76,17 @@ static GtkBuilder *ui_builder = NULL; -#ifdef MENUS_GTK3 -static void menu_entry_set_active(const char *key, - gboolean is_active); -static void menu_entry_set_sensitive(const char *key, - gboolean is_sensitive); #ifndef FREECIV_DEBUG static void menu_entry_set_visible(const char *key, gboolean is_visible, gboolean is_sensitive); #endif /* FREECIV_DEBUG */ +#ifdef MENUS_GTK3 +static void menu_entry_set_active(const char *key, + gboolean is_active); +static void menu_entry_set_sensitive(const char *key, + gboolean is_sensitive); static void view_menu_update_sensitivity(void); enum menu_entry_grouping { MGROUP_SAFE, MGROUP_EDIT, MGROUP_PLAYING, @@ -2065,6 +2065,7 @@ static void menu_entry_group_set_sensitive(enum menu_entry_grouping group, } } } +#endif /* MENUS_GTK3 */ /************************************************************************//** Sets an action visible. @@ -2083,6 +2084,7 @@ static void menu_entry_set_visible(const char *key, } #endif /* FREECIV_DEBUG */ +#ifdef MENUS_GTK3 /************************************************************************//** Renames an action. ****************************************************************************/ -- 2.35.1