build: ensure compiler flags are properly detected
authorUri Simchoni <uri@samba.org>
Mon, 20 Nov 2017 20:53:12 +0000 (20:53 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 22 Nov 2017 13:19:20 +0000 (14:19 +0100)
commit667335a42d683f73ec9c52c68730041d83a163a5
tree4ba12712550af7f664aa9f59c9bdcc1ade5bca21
parent2e53d6a30fc4135b702611d17a5d552cc32c446e
build: ensure compiler flags are properly detected

While checking for compiler flag availability, treat warnings
as errors. Thus if the compiler only warns about unsupported flag,
it will fail the test and the flag shall be marked as unsupported.

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Nov 22 14:19:20 CET 2017 on sn-devel-144
buildtools/wafsamba/samba_autoconf.py