replace: Be strict when checking __attribute__ features
authorAmitay Isaacs <amitay@gmail.com>
Tue, 3 Jul 2018 04:36:33 +0000 (14:36 +1000)
committerMartin Schwenke <martins@samba.org>
Wed, 4 Jul 2018 21:56:43 +0000 (23:56 +0200)
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>
lib/replace/wscript

index 66694f7d0af317224614a20449289333e4568d8d..fd00a42d5b62def11c0deba205382a6772f7f0c3 100644 (file)
@@ -293,7 +293,7 @@ def configure(conf):
                     ''',
                     'HAVE_FALLTHROUGH_ATTRIBUTE',
                     addmain=False,
-                    cflags='-Werror',
+                    strict=True,
                     msg='Checking for fallthrough attribute')
 
     # these may be builtins, so we need the link=False strategy