diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-06-21 10:39:20 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-06-21 10:39:20 +0000 |
commit | 9a337801521c9f11cbf6d2e8059f2f133e1afe75 (patch) | |
tree | 137df8ee306e4de140ba6a6b0be3be32972fae27 /include | |
parent | b7e61485d6203080f17702f28090ebb85dc905ce (diff) |
- add ATTRIBUTE_UNUSED_RESULT for internal use
Diffstat (limited to 'include')
-rw-r--r-- | include/platform.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h index 9c93efb53..dcdb5c8f7 100644 --- a/include/platform.h +++ b/include/platform.h @@ -56,12 +56,15 @@ # 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 |