diff options
-rw-r--r-- | sal/inc/sal/types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/inc/sal/types.h b/sal/inc/sal/types.h index 53d1645eedd1..bc9b2ef9a853 100644 --- a/sal/inc/sal/types.h +++ b/sal/inc/sal/types.h @@ -310,7 +310,7 @@ typedef void * sal_Handle; Compilers that support a construct of this nature will emit a compile time warning on unchecked return value. */ -#if defined(__GNUC__) +#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)) # define SAL_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #else # define SAL_WARN_UNUSED_RESULT |