diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-04-24 13:58:04 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-05-14 01:06:53 -0400 |
commit | 7fb6dc36bb515f39f332707b85f7e1cb5129eed8 (patch) | |
tree | 7f5f686d0f2f5069b0f530443aa9d9bded88557b /include/sim/callback.h | |
parent | 2e4885ee8fad4490f97624d6a70785b2f9cba849 (diff) | |
download | binutils-7fb6dc36bb515f39f332707b85f7e1cb5129eed8.zip binutils-7fb6dc36bb515f39f332707b85f7e1cb5129eed8.tar.gz binutils-7fb6dc36bb515f39f332707b85f7e1cb5129eed8.tar.bz2 |
sim: callback: use ATTRIBUTE_NORETURN
This define is handled by ansidecl.h, so no need to duplicate effort.
Diffstat (limited to 'include/sim/callback.h')
-rw-r--r-- | include/sim/callback.h | 6 |
1 files changed, 1 insertions, 5 deletions
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 */ |