projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac0e5ab
)
fix -Werror compile
author
Denis Vlasenko
<vda.linux@googlemail.com>
Fri, 4 May 2007 21:38:14 +0000
(21:38 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Fri, 4 May 2007 21:38:14 +0000
(21:38 -0000)
include/platform.h
patch
|
blob
|
history
diff --git
a/include/platform.h
b/include/platform.h
index ad3cc93328cc5a0f7d60be256680ce8949bf27d8..c2013b39dacd2ec223897d705a420ca0c8c648c3 100644
(file)
--- 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 */