From: Andrew Bartlett Date: Wed, 13 Sep 2023 20:14:55 +0000 (+1200) Subject: build: Reduce heimdal_no_error_flags to a more minimal set X-Git-Tag: tevent-0.16.0~554 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58e45b35a3e18f61d390d95992eced2afb6a3eff;p=thirdparty%2Fsamba.git build: Reduce heimdal_no_error_flags to a more minimal set 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 Reviewed-by: Stefan Metzmacher --- diff --git a/third_party/heimdal_build/wscript_configure b/third_party/heimdal_build/wscript_configure index 80a6bcf70fd..5a7ddf54cf5 100644 --- a/third_party/heimdal_build/wscript_configure +++ b/third_party/heimdal_build/wscript_configure @@ -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,