summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2019-06-14 12:52:42 -0400
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-06-23 14:43:03 -0400
commit3a61925e91ba9f0ece1b444eb1aa49caa59e4ae7 (patch)
tree0617bca13695d92a0e5f5f84312e3a50794f1667 /scripts
parent589834b3a0097a4908f4112eac0ca2feb486fa32 (diff)
kbuild: Enable -Wuninitialized
This helps fine very dodgy behavior through both -Wuninitialized (warning that a variable is always uninitialized) and -Wsometimes-uninitialized (warning that a variable is sometimes uninitialized, like GCC's -Wmaybe-uninitialized). These warnings catch things that GCC doesn't such as: https://lore.kernel.org/lkml/86649ee4-9794-77a3-502c-f4cd10019c36@lca.pw/ We very much want to catch these so turn this warning on so that CI is aware of it. Link: https://github.com/ClangBuiltLinux/linux/issues/381 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.extrawarn1
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn
index 98081ab300e5..699683a7c116 100644
--- a/scripts/Makefile.extrawarn
+++ b/scripts/Makefile.extrawarn
@@ -71,6 +71,5 @@ KBUILD_CFLAGS += -Wno-unused-value
71KBUILD_CFLAGS += -Wno-format 71KBUILD_CFLAGS += -Wno-format
72KBUILD_CFLAGS += -Wno-sign-compare 72KBUILD_CFLAGS += -Wno-sign-compare
73KBUILD_CFLAGS += -Wno-format-zero-length 73KBUILD_CFLAGS += -Wno-format-zero-length
74KBUILD_CFLAGS += -Wno-uninitialized
75endif 74endif
76endif 75endif