From ce660c5c304e7261cae66224ad90c0dd3db363af Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 3 Jun 2024 14:43:10 -0700 Subject: [PATCH] lwlib: pacify gcc -Wmissing-variable-declarations * lwlib/lwlib.c (lwlib_toolkit_type): Remove unused var. * lwlib/xlwmenu.c (submenu_destroyed): Now static. * src/xmenu.c (widget_id_tick): Declare extern, as a FIXME. --- lwlib/lwlib.c | 6 ------ lwlib/xlwmenu.c | 2 +- src/xmenu.c | 1 + 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/lwlib/lwlib.c b/lwlib/lwlib.c index 354faeed5b2..de978d569ed 100644 --- a/lwlib/lwlib.c +++ b/lwlib/lwlib.c @@ -61,12 +61,6 @@ along with GNU Emacs. If not, see . */ static widget_info* all_widget_info = NULL; -#ifdef USE_MOTIF -const char *lwlib_toolkit_type = "motif"; -#else -const char *lwlib_toolkit_type = "lucid"; -#endif - static widget_value *merge_widget_value (widget_value *, widget_value *, int, int *); diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c index 0f8f94b803c..33f3fa27033 100644 --- a/lwlib/xlwmenu.c +++ b/lwlib/xlwmenu.c @@ -248,7 +248,7 @@ XlwMenuClassRec xlwMenuClassRec = WidgetClass xlwMenuWidgetClass = (WidgetClass) &xlwMenuClassRec; -int submenu_destroyed; +static int submenu_destroyed; static int next_release_must_exit; diff --git a/src/xmenu.c b/src/xmenu.c index 8682e67dad4..6dd7b3f37a0 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -1607,6 +1607,7 @@ create_and_show_popup_menu (struct frame *f, widget_value *first_wv, For menu bars, we use numbers starting at 0, counted in next_menubar_widget_id. */ +extern LWLIB_ID widget_id_tick; /* FIXME: Move this to a .h file. */ LWLIB_ID widget_id_tick; static void