]> git.eshelyaron.com Git - emacs.git/commitdiff
* xterm.c (x_connection_closed): Tell GCC not to suggest NO_RETURN.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 Mar 2011 17:39:28 +0000 (09:39 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 Mar 2011 17:39:28 +0000 (09:39 -0800)
src/ChangeLog
src/xterm.c

index 3381fa28acaef2e0b3cd67dedaef33128aead93d..13f1715d3aeed9ec0f80aae21618bafdefe52784 100644 (file)
@@ -18,6 +18,7 @@
        (x_error_quitter, xembed_send_message, x_iconify_frame):
        (my_log_handler): Rename locals to avoid shadowing.
        (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
+       (x_connection_closed): Tell GCC not to suggest NO_RETURN.
 
        * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
        or move locals to avoid shadowing.
index e218eb95285a769ecc6daa1d7ea33fa5988c014d..abedf3b3bcecc13f66d7e6a7fd4863f3184315ae 100644 (file)
@@ -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'.  */