aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/xterm.c b/src/xterm.c
index beef61d1618..9fb19a16f60 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -9393,7 +9393,7 @@ static char *error_msg;
9393/* Handle the loss of connection to display DPY. ERROR_MESSAGE is 9393/* Handle the loss of connection to display DPY. ERROR_MESSAGE is
9394 the text of an error message that lead to the connection loss. */ 9394 the text of an error message that lead to the connection loss. */
9395 9395
9396static void 9396static _Noreturn void
9397x_connection_closed (Display *dpy, const char *error_message, bool ioerror) 9397x_connection_closed (Display *dpy, const char *error_message, bool ioerror)
9398{ 9398{
9399 struct x_display_info *dpyinfo = x_display_info_for_display (dpy); 9399 struct x_display_info *dpyinfo = x_display_info_for_display (dpy);
@@ -9491,9 +9491,6 @@ For details, see etc/PROBLEMS.\n",
9491 unbind_to (idx, Qnil); 9491 unbind_to (idx, Qnil);
9492 clear_waiting_for_input (); 9492 clear_waiting_for_input ();
9493 9493
9494 /* Tell GCC not to suggest attribute 'noreturn' for this function. */
9495 IF_LINT (if (! terminal_list) return; )
9496
9497 /* Here, we absolutely have to use a non-local exit (e.g. signal, throw, 9494 /* Here, we absolutely have to use a non-local exit (e.g. signal, throw,
9498 longjmp), because returning from this function would get us back into 9495 longjmp), because returning from this function would get us back into
9499 Xlib's code which will directly call `exit'. */ 9496 Xlib's code which will directly call `exit'. */
@@ -9559,7 +9556,7 @@ x_error_quitter (Display *display, XErrorEvent *event)
9559 It kills all frames on the display that we lost touch with. 9556 It kills all frames on the display that we lost touch with.
9560 If that was the only one, it prints an error message and kills Emacs. */ 9557 If that was the only one, it prints an error message and kills Emacs. */
9561 9558
9562static int 9559static _Noreturn int
9563x_io_error_quitter (Display *display) 9560x_io_error_quitter (Display *display)
9564{ 9561{
9565 char buf[256]; 9562 char buf[256];
@@ -9567,7 +9564,7 @@ x_io_error_quitter (Display *display)
9567 snprintf (buf, sizeof buf, "Connection lost to X server '%s'", 9564 snprintf (buf, sizeof buf, "Connection lost to X server '%s'",
9568 DisplayString (display)); 9565 DisplayString (display));
9569 x_connection_closed (display, buf, true); 9566 x_connection_closed (display, buf, true);
9570 return 0; 9567 assume (false);
9571} 9568}
9572 9569
9573/* Changing the font of the frame. */ 9570/* Changing the font of the frame. */