summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2016-03-23 15:29:50 +1300
committerUri Simchoni <uri@samba.org>2016-03-24 15:13:15 +0100
commit82258aa2a6ff1a8d139f60abb170aaffb0934025 (patch)
tree8f6acb667690adf682bc2dd1a5d1cb8c21f7103d
parent7b92b84415dd3292538eb4e44fac12b4e564b984 (diff)
downloadsamba-82258aa2a6ff1a8d139f60abb170aaffb0934025.tar.gz
s4/lib/wmi_wrap: use HAVE___ATTRIBUTE__ instead of __GNUC__
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org>
-rw-r--r--source4/lib/wmi/wmi_wrap.c8
1 files changed, 1 insertions, 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