From 82258aa2a6ff1a8d139f60abb170aaffb0934025 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Wed, 23 Mar 2016 15:29:50 +1300 Subject: s4/lib/wmi_wrap: use HAVE___ATTRIBUTE__ instead of __GNUC__ Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett Reviewed-by: Uri Simchoni --- source4/lib/wmi/wmi_wrap.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/source4/lib/wmi/wmi_wrap.c b/source4/lib/wmi/wmi_wrap.c index a4aaf1b5450..07eba3e3fbd 100644 --- a/source4/lib/wmi/wmi_wrap.c +++ b/source4/lib/wmi/wmi_wrap.c @@ -39,13 +39,7 @@ /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED -# if defined(__GNUC__) -# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) -# define SWIGUNUSED __attribute__ ((__unused__)) -# else -# define SWIGUNUSED -# endif -# elif defined(__ICC) +# ifdef HAVE___ATTRIBUTE__ # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED -- cgit v1.2.1