mbox series

[U-Boot,0/4] Add support for treating compiler warnings as errors

Message ID 20180125172127.17825-1-daniel.schwierzeck@gmail.com
Headers show
Series Add support for treating compiler warnings as errors | expand

Message

Daniel Schwierzeck Jan. 25, 2018, 5:21 p.m. UTC
To enforce a zero-warnings policy (e.g. in CI builds), all compiler
warnings have to be treated as errors.

Extend Kbuild and buildman with according options to achieve this.
Enable these new options in all Travis CI builds. All builds with
compiler warnings will now fail. Only DTC warnings are still being
ignored.

Example build which failed due to a compiler warning:
https://travis-ci.org/danielschwierzeck/u-boot/jobs/333349371#L936


Daniel Schwierzeck (4):
  Kbuild: support W=[N,]err for passing '-Werror' to the compiler
  buildman: add option -E for treating compiler warnings as errors
  travis.yml: fix 'set +e' in build script
  travis.yml: run buildman with option -E

 .travis.yml                     | 5 ++---
 scripts/Makefile.extrawarn      | 3 +++
 tools/buildman/builder.py       | 5 ++++-
 tools/buildman/builderthread.py | 2 ++
 tools/buildman/cmdline.py       | 2 ++
 tools/buildman/control.py       | 3 ++-
 6 files changed, 15 insertions(+), 5 deletions(-)