wafsamba: Add strict option to CHECK_CODE
commit89de78eedfbb1a11e4c6f94f1838d78576d2dd86
authorAmitay Isaacs <amitay@gmail.com>
Tue, 3 Jul 2018 03:56:13 +0000 (3 13:56 +1000)
committerKarolin Seeger <kseeger@samba.org>
Tue, 10 Jul 2018 08:44:13 +0000 (10 10:44 +0200)
treeebe206132d4b70a0eb137067ab2327859009e391
parent4561e668a0b31aef2d812804c4c26343a40d3b14
wafsamba: Add strict option to CHECK_CODE

Some compilers (e.g. xlc) ignores unsupported features, generates a
warning, but does not fail compilation.

This ensures that any compiler warnings are treated as errors and the
feature support is correctly identified.  This adds equivalent compiler
option to -Werror for xlc.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13493

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit c08d65c3eea997d52e311f027d84bdc3f9c93059)
buildtools/wafsamba/samba_autoconf.py