nss_wrapper: Be strict when checking __attribute__ features
authorAmitay Isaacs <amitay@gmail.com>
Tue, 3 Jul 2018 04:44:48 +0000 (14:44 +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>
third_party/nss_wrapper/wscript

index 90c6e71d6e9278cf1dbbb0b34f1b99e11de7ac44..d50dd5cbb17d6e475b65d37dcd3f0edba872ec01 100644 (file)
@@ -38,6 +38,7 @@ def configure(conf):
             ''',
             'HAVE_DESTRUCTOR_ATTRIBUTE',
             addmain=False,
             ''',
             'HAVE_DESTRUCTOR_ATTRIBUTE',
             addmain=False,
+            strict=True,
             msg='Checking for library destructor support')
 
         # check HAVE_ATTRIBUTE_PRINTF_FORMAT
             msg='Checking for library destructor support')
 
         # check HAVE_ATTRIBUTE_PRINTF_FORMAT
@@ -50,6 +51,7 @@ def configure(conf):
             ''',
             'HAVE_ATTRIBUTE_PRINTF_FORMAT',
             addmain=False,
             ''',
             'HAVE_ATTRIBUTE_PRINTF_FORMAT',
             addmain=False,
+            strict=True,
             msg='Checking for printf format validation support')
 
         conf.CHECK_FUNCS('gethostbyaddr_r gethostbyname_r')
             msg='Checking for printf format validation support')
 
         conf.CHECK_FUNCS('gethostbyaddr_r gethostbyname_r')