1--- lib/replace/wscript.orig 2022-10-24 10:21:14 UTC 2+++ lib/replace/wscript 3@@ -122,7 +122,7 @@ def configure(conf): 4 conf.CHECK_HEADERS('sys/atomic.h stdatomic.h') 5 conf.CHECK_HEADERS('libgen.h') 6 7- if conf.CHECK_CFLAGS('-Wno-format-truncation'): 8+ if conf.CHECK_CFLAGS(['-Wno-format-truncation'] + conf.env.WERROR_CFLAGS): 9 conf.define('HAVE_WNO_FORMAT_TRUNCATION', '1') 10 11 if conf.CHECK_CFLAGS('-Wno-unused-function'): 12