mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 16:05:56 +08:00
sim: replace custom attributes with ansidecl.h
A lot of this code predates the common attributes. We had already started migrating over piece by piece, so just do a pass across all the attributes and replace most of them.
This commit is contained in:
@ -325,24 +325,10 @@
|
||||
#endif
|
||||
|
||||
|
||||
/* Your compiler's no-return reserved word */
|
||||
|
||||
#ifndef NORETURN
|
||||
#define NORETURN
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/* Your compilers's unused reserved word */
|
||||
|
||||
#if !defined (UNUSED)
|
||||
#if (!defined (__GNUC__) \
|
||||
|| (__GNUC__ < 2) \
|
||||
|| (__GNUC__ == 2 && __GNUC_MINOR__ < 7))
|
||||
#define UNUSED
|
||||
#else
|
||||
#define UNUSED __attribute__((__unused__))
|
||||
#endif
|
||||
#define UNUSED ATTRIBUTE_UNUSED
|
||||
#endif
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user