Remove unused attributes
This commit is contained in:
parent
3d7ee30314
commit
2970242ff7
1 changed files with 0 additions and 8 deletions
|
@ -12,10 +12,6 @@
|
|||
|
||||
#ifdef __GNUC__
|
||||
|
||||
#define ATTRIBUTE_FORMAT(archetype, formatArgumentIndex, firstToCheck) __attribute__((format(archetype, formatArgumentIndex, firstToCheck)))
|
||||
#define ATTRIBUTE_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
||||
#define ATTRIBUTE_MALLOC __attribute__((malloc))
|
||||
#define ATTRIBUTE_NONNULL(...) __attribute__((nonnull(__VA_ARGS__)))
|
||||
#define ATTRIBUTE_HOT __attribute__((hot))
|
||||
#define LIKELY(condition) __builtin_expect((condition), 1)
|
||||
#define UNLIKELY(condition) __builtin_expect((condition), 0)
|
||||
|
@ -23,10 +19,6 @@
|
|||
|
||||
#else
|
||||
|
||||
#define ATTRIBUTE_FORMAT(archetype, stringIndex, firstToCheck)
|
||||
#define ATTRIBUTE_WARN_UNUSED_RESULT
|
||||
#define ATTRIBUTE_MALLOC
|
||||
#define ATTRIBUTE_NONNULL
|
||||
#define ATTRIBUTE_HOT
|
||||
#define LIKELY(condition) condition
|
||||
#define UNLIKELY(condition) condition
|
||||
|
|
Loading…
Add table
Reference in a new issue