[dovecot-cvs] dovecot/src/lib macros.h,1.21,1.22
tss at dovecot.org
tss at dovecot.org
Thu Feb 22 15:59:56 UTC 2007
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv18573
Modified Files:
macros.h
Log Message:
warn_unused_result attribute exists only with gcc 4.0 and later.
Index: macros.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/macros.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- macros.h 15 Dec 2006 18:10:53 -0000 1.21
+++ macros.h 22 Feb 2007 15:59:54 -0000 1.22
@@ -104,11 +104,12 @@
# define __attr_noreturn__ __attribute__((noreturn))
# define __attr_const__ __attribute__((const))
# define __attr_malloc__ __attribute__((malloc))
-# define __attr_warn_unused_result__ __attribute__((warn_unused_result))
# if __GNUC__ > 3
/* GCC 4.0 and later */
+# define __attr_warn_unused_result__ __attribute__((warn_unused_result))
# define __attr_sentinel__ __attribute__((sentinel))
# else
+# define __attr_warn_unused_result__
# define __attr_sentinel__
# endif
#else
More information about the dovecot-cvs
mailing list