From: Po Lu Date: Fri, 29 Apr 2022 01:35:58 +0000 (+0800) Subject: ; * src/xterm.c (x_connection_closed): Clean up compiler warning. X-Git-Tag: emacs-29.0.90~1931^2~226 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a431b449802918c88685af46d2f720204841ad19;p=emacs.git ; * src/xterm.c (x_connection_closed): Clean up compiler warning. --- diff --git a/src/xterm.c b/src/xterm.c index 35f6bc7fe8e..98641d0241d 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -20037,13 +20037,14 @@ static char *error_msg; static AVOID x_connection_closed (Display *dpy, const char *error_message, bool ioerror) { - struct x_display_info *dpyinfo = x_display_info_for_display (dpy); + struct x_display_info *dpyinfo; Lisp_Object frame, tail; specpdl_ref idx = SPECPDL_INDEX (); void *io_error_handler; xm_drop_start_message dmsg; struct frame *f; + dpyinfo = x_display_info_for_display (dpy); error_msg = alloca (strlen (error_message) + 1); strcpy (error_msg, error_message); @@ -20104,6 +20105,7 @@ x_connection_closed (Display *dpy, const char *error_message, bool ioerror) } XSetIOErrorHandler (io_error_handler); + dpyinfo = x_display_info_for_display (dpy); x_dnd_last_seen_window = None; x_dnd_last_seen_toplevel = None;