Dear all,
there's a warning in r41867
cc1: warnings being treated as errors
main_menubar.c:3874: error: set_menu_visible defined but not used
make[2]: *** [libgtkui_a-main_menubar.o] Error 1
Trivial fix is attached.
Best regards,
Martin
Index: ui/gtk/main_menubar.c
===================================================================
--- ui/gtk/main_menubar.c (revision 41867)
+++ ui/gtk/main_menubar.c (working copy)
@@ -145,7 +145,9 @@
static void merge_lua_menu_items(GList *node);
static void ws_menubar_build_external_menus(void);
static void set_menu_sensitivity (GtkUIManager *ui_manager, const gchar *, gint);
+#if !defined(WANT_PACKET_EDITOR) || !defined(HAVE_AIRPCAP) || !defined(HAVE_LIBPCAP)
static void set_menu_visible(GtkUIManager *ui_manager, const gchar *path, gint val);
+#endif
static void name_resolution_cb(GtkWidget *w, gpointer d, gint action);
static void colorize_cb(GtkWidget *w, gpointer d);
@@ -3870,6 +3872,7 @@
gtk_action_set_sensitive (action, val); /* TRUE to make the action sensitive */
}
+#if !defined(WANT_PACKET_EDITOR) || !defined(HAVE_AIRPCAP) || !defined(HAVE_LIBPCAP)
static void
set_menu_visible(GtkUIManager *ui_manager, const gchar *path, gint val)
{
@@ -3883,8 +3886,8 @@
}
gtk_action_set_visible (action, val); /* TRUE to make the action visible */
}
+#endif
-
static void
set_menu_object_data_meat(GtkUIManager *ui_manager, const gchar *path, const gchar *key, gpointer data)
{