lib/replace/wscript: fix detection of a fallthrough attribute for clang
authorAlexander Bokovoy <ab@samba.org>
Thu, 6 Sep 2018 09:50:58 +0000 (09:50 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 7 Sep 2018 09:37:23 +0000 (11:37 +0200)
commit364077d262012af0346afad6d9b9c3999054563f
tree2bf5c157264feb51d45ae086ba1254d5c13343ed
parent311e1eb67306d6a639ce80b94a16ea2ef19592f0
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>
lib/replace/wscript