sim: callback: use ATTRIBUTE_NORETURN
authorMike Frysinger <vapier@gentoo.org>
Sat, 24 Apr 2021 17:58:04 +0000 (13:58 -0400)
committerMike Frysinger <vapier@gentoo.org>
Fri, 14 May 2021 05:06:53 +0000 (01:06 -0400)
This define is handled by ansidecl.h, so no need to duplicate effort.

include/sim/ChangeLog
include/sim/callback.h

index 6649f198617c1512ccb5b44cb76ac71dd5167eea..3098bb9518f6d6f9907bbf89032d0cc62f7b82c3 100644 (file)
@@ -1,3 +1,7 @@
+2021-05-14  Mike Frysinger  <vapier@gentoo.org>
+
+       * callback.h (error): Replace __attribute__ with ATTRIBUTE_NORETURN.
+
 2021-05-14  Mike Frysinger  <vapier@gentoo.org>
 
        * callback.h: Delete va_start define check.
index 693614baa5e8e061ea25b38ce785fda647d1becb..d8dfd81a64c71b5e61d6fb2429294db7da161553 100644 (file)
@@ -121,11 +121,7 @@ struct host_callback_struct
   /* Print an error message and "exit".
      In the case of gdb "exiting" means doing a longjmp back to the main
      command loop.  */
-  void (*error) (host_callback *, const char *, ...)
-#ifdef __GNUC__
-    __attribute__ ((__noreturn__))
-#endif
-    ;
+  void (*error) (host_callback *, const char *, ...) ATTRIBUTE_NORETURN;
 
   int last_errno;              /* host format */
 
This page took 0.025951 seconds and 4 git commands to generate.