aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-06-21 10:39:20 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-06-21 10:39:20 +0000
commit9a337801521c9f11cbf6d2e8059f2f133e1afe75 (patch)
tree137df8ee306e4de140ba6a6b0be3be32972fae27 /include/platform.h
parentb7e61485d6203080f17702f28090ebb85dc905ce (diff)
downloadbusybox-w32-9a337801521c9f11cbf6d2e8059f2f133e1afe75.tar.gz
busybox-w32-9a337801521c9f11cbf6d2e8059f2f133e1afe75.tar.bz2
busybox-w32-9a337801521c9f11cbf6d2e8059f2f133e1afe75.zip
- add ATTRIBUTE_UNUSED_RESULT for internal use
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h3
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 @@
56# define ALWAYS_INLINE __attribute__ ((always_inline)) inline 56# define ALWAYS_INLINE __attribute__ ((always_inline)) inline
57# if !ENABLE_WERROR 57# if !ENABLE_WERROR
58# define ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__)) 58# define ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__))
59# define ATTRIBUTE_UNUSED_RESULT __attribute__ ((warn_unused_result))
59# else 60# else
60# define ATTRIBUTE_DEPRECATED /* n/a */ 61# define ATTRIBUTE_DEPRECATED /* n/a */
62# define ATTRIBUTE_UNUSED_RESULT /* n/a */
61# endif 63# endif
62# else 64# else
63# define ALWAYS_INLINE inline 65# define ALWAYS_INLINE inline
64# define ATTRIBUTE_DEPRECATED /* n/a */ 66# define ATTRIBUTE_DEPRECATED /* n/a */
67# define ATTRIBUTE_UNUSED_RESULT /* n/a */
65# endif 68# endif
66 69
67/* -fwhole-program makes all symbols local. The attribute externally_visible 70/* -fwhole-program makes all symbols local. The attribute externally_visible