From: Douglas Bagnall Date: Wed, 9 Oct 2024 22:20:28 +0000 (+1300) Subject: build: --disable-warnings-as-errors avoids some warning config checks X-Git-Tag: tevent-0.17.0~620 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=365f4cf30d0932405d565cf3c606e1d75410fdb5;p=thirdparty%2Fsamba.git build: --disable-warnings-as-errors avoids some warning config checks This fixes compilation with some versions of Honggfuzz. Signed-off-by: Douglas Bagnall Reviewed-by: Jennifer Sutton --- diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index 802cbaced52..d4e27e156e6 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -784,8 +784,9 @@ def SAMBA_CONFIG_H(conf, path=None): conf.ADD_CFLAGS('-Werror=address', testflags=True) # we add these here to ensure that -Wstrict-prototypes is not set during configure - conf.ADD_CFLAGS('-Werror=strict-prototypes -Wstrict-prototypes', - testflags=True) + if not Options.options.disable_warnings_as_errors: + conf.ADD_CFLAGS('-Werror=strict-prototypes -Wstrict-prototypes', + testflags=True) conf.ADD_CFLAGS('-Werror=write-strings -Wwrite-strings', testflags=True) conf.ADD_CFLAGS('-Werror-implicit-function-declaration',