1--- lib/replace/wscript.orig 2019-02-26 06:44:21 UTC 2+++ lib/replace/wscript 3@@ -119,7 +119,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