resolv_wrapper: Be strict when checking __attribute__ features
authorAmitay Isaacs <amitay@gmail.com>
Tue, 3 Jul 2018 04:45:24 +0000 (14:45 +1000)
committerKarolin Seeger <kseeger@samba.org>
Tue, 10 Jul 2018 08:44:13 +0000 (10:44 +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>
(cherry picked from commit c220e310b40c67b73248141b3af544bad19fd39d)

third_party/resolv_wrapper/wscript

index be3e82be3ea1baa5aeeacdd867a67b0948784b43..bb7722e97758e462413ce726117ebd2a345d2b7e 100644 (file)
@@ -36,6 +36,7 @@ def configure(conf):
             ''',
             'HAVE_DESTRUCTOR_ATTRIBUTE',
             addmain=False,
+            strict=True,
             msg='Checking for library destructor support')
 
         # check HAVE_ATTRIBUTE_PRINTF_FORMAT
@@ -48,6 +49,7 @@ def configure(conf):
             ''',
             'HAVE_ATTRIBUTE_PRINTF_FORMAT',
             addmain=False,
+            strict=True,
             msg='Checking for printf format validation support')
 
         conf.CHECK_HEADERS('resolv.h')