diff options
Diffstat (limited to 'src/func_attr.h')
-rw-r--r-- | src/func_attr.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/func_attr.h b/src/func_attr.h index 94bab79a97..4275d23ff1 100644 --- a/src/func_attr.h +++ b/src/func_attr.h @@ -34,6 +34,7 @@ #define FUNC_ATTR_CONST __attribute__((const)) #define FUNC_ATTR_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #define FUNC_ATTR_ALWAYS_INLINE __attribute__((always_inline)) + #define FUNC_ATTR_UNUSED __attribute__((unused)) #ifdef __clang__ // clang only @@ -90,6 +91,10 @@ #define FUNC_ATTR_ALWAYS_INLINE #endif +#ifndef FUNC_ATTR_UNUSED + #define FUNC_ATTR_UNUSED +#endif + #ifndef FUNC_ATTR_NONNULL_ALL #define FUNC_ATTR_NONNULL_ALL #endif |