sal/inc/sal/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 2b1c49001a7889d1552b599d83af26ffee892201 Author: Norbert Thiebaud <nthieb...@gmail.com> Date: Tue Dec 4 01:04:10 2012 -0600 mac gcc 4.0.1 does not support __attribute((warn_unused_result)) very well Change-Id: Ie8a6a06cd923192891453c9291f37709dfc15079 diff --git a/sal/inc/sal/types.h b/sal/inc/sal/types.h index 53d1645..bc9b2ef 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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits