Add support for treating compiler warnings as errors
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 0 repliesNew
- v14 patches 0 repliesSuperseded
Changes in v2 from the cover letter
- new patch
- replace 'W=err' with 'KCFLAGS=-Werror'
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | README: add doc for how to supply user specific compiler flags to KbuildREADME | +5 | 1 reply | |
| 2/4 | buildman: add option -E for treating compiler warnings as errorstools/ tools/ tools/ +1 more | +10 | 1 reply | |
| 3/4 | travis.yml: fix 'set +e' in build script.travis.yml | +2 | 2 replies | |
| 4/4 | travis.yml: run buildman with option -E.travis.yml | +1 | 1 reply |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | Tom Rini |
|---|---|
| 1/4 | |
| 2/4 | |
| 3/4 | R-b |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [U-Boot] [PATCH v2 0/4] Add support for treating compiler warnings as errors
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
The patch which fixes the warning above:
https://patchwork.ozlabs.org/patch/866009/
Changes in v2:
- new patch
- replace 'W=err' with 'KCFLAGS=-Werror'
Daniel Schwierzeck (4):
README: add doc for how to supply user specific compiler flags to
Kbuild
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 ++--- README | 5 +++++ tools/buildman/builder.py | 5 ++++- tools/buildman/builderthread.py | 2 ++ tools/buildman/cmdline.py | 2 ++ tools/buildman/control.py | 3 ++- 6 files changed, 17 insertions(+), 5 deletions(-)
Signature · 1 line
2.16.1