diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sim/ChangeLog | 4 | ||||
-rw-r--r-- | include/sim/callback.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/sim/ChangeLog b/include/sim/ChangeLog index 6649f19..3098bb9 100644 --- a/include/sim/ChangeLog +++ b/include/sim/ChangeLog @@ -1,5 +1,9 @@ 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. 2021-05-14 Mike Frysinger <vapier@gentoo.org> diff --git a/include/sim/callback.h b/include/sim/callback.h index 693614b..d8dfd81 100644 --- a/include/sim/callback.h +++ b/include/sim/callback.h @@ -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 */ |