]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
build: Reduce heimdal_no_error_flags to a more minimal set
authorAndrew Bartlett <abartlet@samba.org>
Wed, 13 Sep 2023 20:14:55 +0000 (08:14 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 14 Sep 2023 21:35:29 +0000 (21:35 +0000)
Heimdal does not seem to give as many errors as in the past, so we
can reduce the set of errors we ignore warnings for.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
third_party/heimdal_build/wscript_configure

index 80a6bcf70fd5af52e83e9872a875a8411025eaae..5a7ddf54cf57c8f16f99dc786cce2acc4dabdff1 100644 (file)
@@ -75,16 +75,12 @@ if conf.env['WITH_KERNEL_KEYRING'] is not False:
     conf.CHECK_SIZEOF('key_serial_t', headers='keyutils.h',
                       critical=require_keyutils)
 
-heimdal_no_error_flags = ['-Wno-error=discarded-qualifiers',
-                          '-Wno-error=cast-qual',
-                          '-Wno-error=shadow',
-                          '-Wno-error=implicit-fallthrough',
-                          '-Wno-error=enum-compare',
-                          '-Wno-error=unused-but-set-variable',
-                          '-Wno-error=unused-const-variable',
-                          '-Wno-error=unused-variable',
+heimdal_no_error_flags = ['-Wno-error=cast-qual',
+                          '-Wno-error=discarded-qualifiers',
+                          '-Wno-error=old-style-definition',
                           '-Wno-error=unused-result',
-                          '-Wno-error=old-style-definition']
+                          '-Wno-error=unused-variable'
+]
 for flag in heimdal_no_error_flags:
     conf.ADD_NAMED_CFLAGS('HEIMDAL_NO_ERROR_CFLAGS',
                           flag,