summaryrefslogtreecommitdiff
path: root/src/xterm.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-03-09 09:39:28 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2011-03-09 09:39:28 -0800
commit2a8fade06259290024cd7fe98fdeb8fd9709c90f (patch)
treed83dab964434a023231667bca61b397eb5d30d53 /src/xterm.c
parent28f1c698135e245c0e09e6c5314b4799aca9378d (diff)
downloademacs-2a8fade06259290024cd7fe98fdeb8fd9709c90f.tar.gz
* xterm.c (x_connection_closed): Tell GCC not to suggest NO_RETURN.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c
index e218eb95285..abedf3b3bce 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -7755,6 +7755,10 @@ For details, see etc/PROBLEMS.\n",
unbind_to (idx, Qnil);
clear_waiting_for_input ();
+
+ /* Tell GCC not to suggest attribute 'noreturn' for this function. */
+ IF_LINT (if (! terminal_list) return; )
+
/* Here, we absolutely have to use a non-local exit (e.g. signal, throw,
longjmp), because returning from this function would get us back into
Xlib's code which will directly call `exit'. */