git.samba.org
/
ddiss
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c1013c
)
pidl: use unused attribute only if supported by feature macro
author
Björn Jacke
<bj@sernet.de>
Mon, 19 Oct 2020 00:03:02 +0000
(
02:03
+0200)
committer
Andrew Bartlett
<abartlet@samba.org>
Tue, 10 Nov 2020 06:53:43 +0000
(06:53 +0000)
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
pidl/lib/Parse/Pidl/Samba4/Python.pm
patch
|
blob
|
history
diff --git
a/pidl/lib/Parse/Pidl/Samba4/Python.pm
b/pidl/lib/Parse/Pidl/Samba4/Python.pm
index 76a094b625bec7f1850a44090d5b06692b54033e..578e17d1cbcc887338142fc392a85111d12b0ddb 100644
(file)
--- a/
pidl/lib/Parse/Pidl/Samba4/Python.pm
+++ b/
pidl/lib/Parse/Pidl/Samba4/Python.pm
@@
-2304,12
+2304,14
@@
$ndr_hdr_include
* functions
*/
#ifndef _MAYBE_UNUSED_
-#ifdef HAVE___ATTRIBUTE__
+#ifdef __has_attribute
+#if __has_attribute(unused)
#define _MAYBE_UNUSED_ __attribute__ ((unused))
#else
#define _MAYBE_UNUSED_
#endif
#endif
+#endif
/*
* These functions are here to ensure they can be optimized out by
* the compiler based on the constant input values