diff options
author | Chris Fries <cfries@google.com> | 2017-03-08 08:08:38 -0600 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2020-02-02 01:40:01 +0200 |
commit | b1c1a3da56725b27830a93065e2942acbf7144ff (patch) | |
tree | 052925781f3d84fbbac62dd563f4deac241de236 /lib/Kconfig.debug | |
parent | 287df0c4d9f48c534a477d4d808b3e1e4db767bb (diff) |
kernel: Add CC_WERROR config to turn warnings into errors
Add configuration option CONFIG_CC_WERROR to prevent warnings
from creeping in.
Signed-off-by: Chris Fries <cfries@google.com>
Link: https://android.googlesource.com/kernel/msm/+/18f26a64a28ad71c1858b768ec710d244e61cfd7
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r-- | lib/Kconfig.debug | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index a3a9196432d0..535b49d349c0 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -2028,6 +2028,16 @@ config BUG_ON_DATA_CORRUPTION If unsure, say N. +config CC_WERROR + bool "Treat all compile warnings as errors" + default n + help + Select this option to set compiler warnings as errors, + to prevent easily-fixable problems from creeping into + the codebase. + + If unsure, say N. + source "samples/Kconfig" source "lib/Kconfig.kgdb" |