Skip to content

Commit 365f4cf

Browse files
build: --disable-warnings-as-errors avoids some warning config checks
This fixes compilation with some versions of Honggfuzz. Signed-off-by: Douglas Bagnall <[email protected]> Reviewed-by: Jennifer Sutton <[email protected]>
1 parent 125862c commit 365f4cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

buildtools/wafsamba/samba_autoconf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,8 +784,9 @@ def SAMBA_CONFIG_H(conf, path=None):
784784

785785
conf.ADD_CFLAGS('-Werror=address', testflags=True)
786786
# we add these here to ensure that -Wstrict-prototypes is not set during configure
787-
conf.ADD_CFLAGS('-Werror=strict-prototypes -Wstrict-prototypes',
788-
testflags=True)
787+
if not Options.options.disable_warnings_as_errors:
788+
conf.ADD_CFLAGS('-Werror=strict-prototypes -Wstrict-prototypes',
789+
testflags=True)
789790
conf.ADD_CFLAGS('-Werror=write-strings -Wwrite-strings',
790791
testflags=True)
791792
conf.ADD_CFLAGS('-Werror-implicit-function-declaration',

0 commit comments

Comments
 (0)