svn commit: trunk/busybox/include
vda at busybox.net
vda at busybox.net
Fri May 4 14:38:19 PDT 2007
Author: vda
Date: 2007-05-04 14:38:14 -0700 (Fri, 04 May 2007)
New Revision: 18559
Log:
fix -Werror compile
Modified:
trunk/busybox/include/platform.h
Changeset:
Modified: trunk/busybox/include/platform.h
===================================================================
--- trunk/busybox/include/platform.h 2007-05-04 21:37:27 UTC (rev 18558)
+++ trunk/busybox/include/platform.h 2007-05-04 21:38:14 UTC (rev 18559)
@@ -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 */
More information about the busybox-cvs
mailing list