From 734e5ebc93a4ed325173119211559f6942e651c4 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 4 May 2007 21:38:14 +0000 Subject: fix -Werror compile --- include/platform.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') 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 */ -- cgit v1.2.3