1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-21 06:55:39 +00:00

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.
This commit is contained in:
Paul Eggert 2024-06-03 14:43:10 -07:00
parent cd7dd3e675
commit ce660c5c30
3 changed files with 2 additions and 7 deletions

View File

@ -61,12 +61,6 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
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 *);

View File

@ -248,7 +248,7 @@ XlwMenuClassRec xlwMenuClassRec =
WidgetClass xlwMenuWidgetClass = (WidgetClass) &xlwMenuClassRec;
int submenu_destroyed;
static int submenu_destroyed;
static int next_release_must_exit;

View File

@ -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