diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-12-04 01:04:10 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-12-04 01:04:10 -0600 |
commit | 2b1c49001a7889d1552b599d83af26ffee892201 (patch) | |
tree | 7508f397a5112f90ff3eccf730b60497f1ec2d48 /sal | |
parent | f4ae375c00deb2297074c59b62db87de080bf591 (diff) |
mac gcc 4.0.1 does not support __attribute((warn_unused_result)) very well
Change-Id: Ie8a6a06cd923192891453c9291f37709dfc15079
Diffstat (limited to 'sal')
-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 |