From: Quentin Schulz <[email protected]> Buildman currently only enables Werror for KBUILD_CFLAGS (via KCFLAGS) and KBUILD_HOSTCFLAGS (via HOSTCFLAGS) but nothing else.
scripts/Makefile.extrawarn now supports --fatal-warnings for the linker and assembler, which are enabled whenever CONFIG_WERROR is set. Let's make buildman set this variable to enable even more checks. KBUILD_CFLAGS and KBUILD_HOSTCFLAGS are kept in case buildman is run on a git-range where W=e is not available, it's better than nothing. Signed-off-by: Quentin Schulz <[email protected]> --- tools/buildman/builderthread.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/buildman/builderthread.py b/tools/buildman/builderthread.py index 371708c8a98..19db265c47a 100644 --- a/tools/buildman/builderthread.py +++ b/tools/buildman/builderthread.py @@ -233,6 +233,7 @@ class BuilderThread(threading.Thread): if self.builder.warnings_as_errors: args.append('KCFLAGS=-Werror') args.append('HOSTCFLAGS=-Werror') + args.append('W=e') if self.builder.allow_missing: args.append('BINMAN_ALLOW_MISSING=1') if self.builder.no_lto: -- 2.54.0

