summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2018-09-06 09:50:58 +0000
committerAndrew Bartlett <abartlet@samba.org>2018-09-07 11:37:23 +0200
commit364077d262012af0346afad6d9b9c3999054563f (patch)
tree2bf5c157264feb51d45ae086ba1254d5c13343ed /lib
parent311e1eb67306d6a639ce80b94a16ea2ef19592f0 (diff)
downloadsamba-364077d262012af0346afad6d9b9c3999054563f.tar.gz
lib/replace/wscript: fix detection of a fallthrough attribute for clang
clang issues a warning but otherwise allows our test to be compiled and linked. We consider this case a successful pass for a fallthrough attribute detection while it is an error. Turn missing declaration warning into an error so that we actually do not define fallthrough attribute support in case it doesn't really work. Fixes FreeBSD 11.2 with clang. Signed-off-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/wscript1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index fa9b837b75f..3d47c375044 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -314,6 +314,7 @@ def configure(conf):
'HAVE_FALLTHROUGH_ATTRIBUTE',
addmain=False,
strict=True,
+ cflags=['-Werror=missing-declarations'],
msg='Checking for fallthrough attribute')
# these may be builtins, so we need the link=False strategy