Disable some annotations for earlier gcc versions

This commit is contained in:
Danny Robson 2012-04-19 16:43:37 +10:00
parent a302ba91eb
commit e618fb4236

View File

@ -24,10 +24,16 @@
// Don't use the name 'noreturn' as it interferes with other headers which // Don't use the name 'noreturn' as it interferes with other headers which
// may use __attribute__((noreturn)) explicitly. // may use __attribute__((noreturn)) explicitly.
#define terminal __attribute__ ((noreturn)) #define terminal __attribute__ ((noreturn))
#if GCC_VERSION >= 40601
#define nonnull __attribute__ ((nonnull)) #define nonnull __attribute__ ((nonnull))
#endif
#define mustuse __attribute__ ((warn_unused_result)) #define mustuse __attribute__ ((warn_unused_result))
#if GCC_VERSION >= 40601
#define unused __attribute__ ((unused)) #define unused __attribute__ ((unused))
#endif
#define pure __attribute__ ((pure)) #define pure __attribute__ ((pure))