Switch from NO_RETURN to C11's _Noreturn.
[bpt/emacs.git] / src / undo.c
index ae9025c..c4ef557 100644 (file)
@@ -438,8 +438,8 @@ truncate_undo_list (struct buffer *b)
   unbind_to (count, Qnil);
 }
 
-static void user_error (const char*) NO_RETURN;
-static void user_error (const char *msg)
+static _Noreturn void
+user_error (const char *msg)
 {
   xsignal1 (Quser_error, build_string (msg));
 }