dovecot-2.2: Added ATTR_NOWARN_UNUSED_RESULT, which expands to n...
    dovecot at dovecot.org 
    dovecot at dovecot.org
       
    Mon Jun 25 02:38:46 EEST 2012
    
    
  
details:   http://hg.dovecot.org/dovecot-2.2/rev/b39e93576e6a
changeset: 14684:b39e93576e6a
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jun 25 02:20:30 2012 +0300
description:
Added ATTR_NOWARN_UNUSED_RESULT, which expands to nowarn_unused_result attribute if supported.
Requires a patched clang.
diffstat:
 src/lib/macros.h |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 9646f80ac3e9 -r b39e93576e6a src/lib/macros.h
--- a/src/lib/macros.h	Mon Jun 25 02:15:22 2012 +0300
+++ b/src/lib/macros.h	Mon Jun 25 02:20:30 2012 +0300
@@ -114,6 +114,11 @@
 #else
 #  define ATTR_NULL(...)
 #endif
+#ifdef HAVE_ATTR_NOWARN_UNUSED_RESULT
+#  define ATTR_NOWARN_UNUSED_RESULT __attribute__((nowarn_unused_result))
+#else
+#  define ATTR_NOWARN_UNUSED_RESULT
+#endif
 #if __GNUC__ > 2
 #  define ATTR_MALLOC __attribute__((malloc))
 #else
    
    
More information about the dovecot-cvs
mailing list