diff --git a/include/tradstdc.h b/include/tradstdc.h index 734c337e6..d77348f85 100644 --- a/include/tradstdc.h +++ b/include/tradstdc.h @@ -404,7 +404,7 @@ typedef genericptr genericptr_t; /* (void *) or (char *) */ #if __GNUC__ >= 3 #define UNUSED __attribute__((unused)) #define NORETURN __attribute__((noreturn)) -#if !defined(__linux__) || defined(GCC_URWARN) +#if (!defined(__linux__) && !defined(MACOS)) || defined(GCC_URWARN) /* disable gcc's __attribute__((__warn_unused_result__)) since explicitly discarding the result by casting to (void) is not accepted as a 'use' */ #define __warn_unused_result__ /*empty*/