From 61d0d21f472e813b3e9872d294b5e33dd8999b93 Mon Sep 17 00:00:00 2001 From: nhmall Date: Mon, 27 Jan 2020 08:23:56 -0500 Subject: [PATCH] avoid link error with gcc 10 which enables -fno-common by default --- src/windows.c | 1 - win/X11/winX.c | 3 --- win/gnome/gnbind.c | 3 --- win/tty/wintty.c | 3 --- 4 files changed, 10 deletions(-) diff --git a/src/windows.c b/src/windows.c index 5b0555189..ba7fb966e 100644 --- a/src/windows.c +++ b/src/windows.c @@ -860,7 +860,6 @@ const char *status_fieldnm[MAXBLSTATS]; const char *status_fieldfmt[MAXBLSTATS]; char *status_vals[MAXBLSTATS]; boolean status_activefields[MAXBLSTATS]; -NEARDATA winid WIN_STATUS; void genl_status_init() diff --git a/win/X11/winX.c b/win/X11/winX.c index 05d82e0eb..f6e537541 100644 --- a/win/X11/winX.c +++ b/win/X11/winX.c @@ -95,9 +95,6 @@ static XtSignalId X11_sig_id; #endif #endif -/* this is only needed until X11_status_* routines are written */ -extern NEARDATA winid WIN_STATUS; - /* Interface definition, for windows.c */ struct window_procs X11_procs = { "X11", diff --git a/win/gnome/gnbind.c b/win/gnome/gnbind.c index 0b99c2453..2c2182301 100644 --- a/win/gnome/gnbind.c +++ b/win/gnome/gnbind.c @@ -19,9 +19,6 @@ winid WIN_WORN = WIN_ERR; extern void tty_raw_print(const char *); extern void tty_raw_print_bold(const char *); -/* this is only needed until gnome_status_* routines are written */ -extern NEARDATA winid WIN_STATUS; - /* Interface definition, for windows.c */ struct window_procs Gnome_procs = { "Gnome", WC_COLOR | WC_HILITE_PET | WC_INVERSE, 0L, diff --git a/win/tty/wintty.c b/win/tty/wintty.c index fda9f6aa3..46a378088 100644 --- a/win/tty/wintty.c +++ b/win/tty/wintty.c @@ -72,9 +72,6 @@ extern short glyph2tile[]; #define HUPSKIP_RESULT(RES) /*empty*/ #endif /* ?HANGUP_HANDLING */ -/* this is only needed until tty_status_* routines are written */ -extern NEARDATA winid WIN_STATUS; - /* Interface definition, for windows.c */ struct window_procs tty_procs = { "tty", -- 2.49.0