[dovecot-cvs] dovecot: Added missing __attr_*__ macros for non-GCC compilers.

dovecot at dovecot.org dovecot at dovecot.org
Mon Jun 4 14:50:57 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/ca38eb4189e8
changeset: 5672:ca38eb4189e8
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jun 04 14:50:50 2007 +0300
description:
Added missing __attr_*__ macros for non-GCC compilers.

diffstat:

1 file changed, 9 insertions(+), 8 deletions(-)
src/lib/macros.h |   17 +++++++++--------

diffs (34 lines):

diff -r 0021765627f3 -r ca38eb4189e8 src/lib/macros.h
--- a/src/lib/macros.h	Sun Jun 03 17:59:55 2007 +0300
+++ b/src/lib/macros.h	Mon Jun 04 14:50:50 2007 +0300
@@ -104,21 +104,22 @@
 #  define __attr_noreturn__ __attribute__((noreturn))
 #  define __attr_const__ __attribute__((const))
 #  define __attr_malloc__ __attribute__((malloc))
-#  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
 #  define __attr_format__(format_idx, arg_idx)
 #  define __attr_format_arg__(arg_idx)
+#  define __attr_scanf__
 #  define __attr_unused__
 #  define __attr_noreturn__
 #  define __attr_const__
 #  define __attr_unused__
+#  define __attr_malloc__
+#endif
+#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
 


More information about the dovecot-cvs mailing list