Skip to content

Commit

Permalink
kernel: build with KERNEL_WERROR by default
Browse files Browse the repository at this point in the history
Instead of only enabling CONFIG_KERNEL_WERROR by default on the
buildbots or for specificly for GCC 12 (?), always enable it by
default. Not doing that leads to build failures on the buildbot which
went unnoticed by developer's local builds as well as CI, apparently.

Fixes: ce8c639 ("kernel: introduce KERNEL_WERROR config option")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  • Loading branch information
dangowrt authored and aparcar committed Apr 4, 2024
1 parent 9237908 commit a340a95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions config/Config-kernel.in
Original file line number Diff line number Diff line change
Expand Up @@ -1418,8 +1418,7 @@ config KERNEL_JFFS2_FS_SECURITY

config KERNEL_WERROR
bool "Compile the kernel with warnings as errors"
default BUILDBOT
default y if GCC_USE_VERSION_12
default y
help
A kernel build should not cause any compiler warnings, and this
enables the '-Werror' (for C) and '-Dwarnings' (for Rust) flags
Expand Down

0 comments on commit a340a95

Please sign in to comment.