All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/4] Add support for treating compiler warnings as errors
@ 2018-01-26 15:31 Daniel Schwierzeck
  2018-01-26 15:31 ` [U-Boot] [PATCH v2 1/4] README: add doc for how to supply user specific compiler flags to Kbuild Daniel Schwierzeck
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Daniel Schwierzeck @ 2018-01-26 15:31 UTC (permalink / raw)
  To: u-boot

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(-)

-- 
2.16.1

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-02-05 21:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-26 15:31 [U-Boot] [PATCH v2 0/4] Add support for treating compiler warnings as errors Daniel Schwierzeck
2018-01-26 15:31 ` [U-Boot] [PATCH v2 1/4] README: add doc for how to supply user specific compiler flags to Kbuild Daniel Schwierzeck
2018-02-05 21:47   ` [U-Boot] [U-Boot, v2, " Tom Rini
2018-01-26 15:31 ` [U-Boot] [PATCH v2 2/4] buildman: add option -E for treating compiler warnings as errors Daniel Schwierzeck
2018-02-05 21:47   ` [U-Boot] [U-Boot, v2, " Tom Rini
2018-01-26 15:31 ` [U-Boot] [PATCH v2 3/4] travis.yml: fix 'set +e' in build script Daniel Schwierzeck
2018-01-26 15:58   ` Tom Rini
2018-02-05 21:48   ` [U-Boot] [U-Boot, v2, " Tom Rini
2018-01-26 15:31 ` [U-Boot] [PATCH v2 4/4] travis.yml: run buildman with option -E Daniel Schwierzeck
2018-02-05 21:48   ` [U-Boot] [U-Boot, v2, " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.