- add ATTRIBUTE_UNUSED_RESULT for internal use
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 21 Jun 2007 10:39:20 +0000 (10:39 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 21 Jun 2007 10:39:20 +0000 (10:39 -0000)
include/platform.h

index 9c93efb53dc54786ed3202b6508b647380186a23..dcdb5c8f7fba92873b6bf7fc61c26a7de38f2764 100644 (file)
 #  define ALWAYS_INLINE __attribute__ ((always_inline)) inline
 #  if !ENABLE_WERROR
 #   define ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__))
+#   define ATTRIBUTE_UNUSED_RESULT __attribute__ ((warn_unused_result))
 #  else
 #   define ATTRIBUTE_DEPRECATED /* n/a */
+#   define ATTRIBUTE_UNUSED_RESULT /* n/a */
 #  endif
 # else
 #  define ALWAYS_INLINE inline
 #  define ATTRIBUTE_DEPRECATED /* n/a */
+#  define ATTRIBUTE_UNUSED_RESULT /* n/a */
 # endif
 
 /* -fwhole-program makes all symbols local. The attribute externally_visible