mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
sim: callback: use ATTRIBUTE_NORETURN
This define is handled by ansidecl.h, so no need to duplicate effort.
This commit is contained in:
@ -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.
|
||||
|
@ -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 */
|
||||
|
||||
|
Reference in New Issue
Block a user