aboutsummaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2007-05-04 21:38:14 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2007-05-04 21:38:14 +0000
commit734e5ebc93a4ed325173119211559f6942e651c4 (patch)
treeeaba2fd2d705c3b823260a1066abcedd4d2d7510 /include/platform.h
parentac0e5ab96ac35d46a6e0755f6f24f016ce788d90 (diff)
downloadbusybox-734e5ebc93a4ed325173119211559f6942e651c4.tar.gz
busybox-734e5ebc93a4ed325173119211559f6942e651c4.tar.bz2
fix -Werror compile
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/platform.h b/include/platform.h
index ad3cc9332..c2013b39d 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -54,7 +54,11 @@
# define ATTRIBUTE_ALIGNED(m) __attribute__ ((__aligned__(m)))
# if __GNUC_PREREQ (3,0)
# define ATTRIBUTE_ALWAYS_INLINE __attribute__ ((always_inline)) inline
-# define ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__))
+# if !ENABLE_WERROR
+# define ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__))
+# else
+# define ATTRIBUTE_DEPRECATED /* n/a */
+# endif
# else
# define ATTRIBUTE_ALWAYS_INLINE inline
# define ATTRIBUTE_DEPRECATED /* n/a */