Skip to content

Commit 17e8499

Browse files
authored
Merge pull request torvalds#524 from ojeda/kconfig-werror
Kconfig: document `CONFIG_WERROR` applies to Rust too
2 parents 7ab59bf + 1f433a4 commit 17e8499

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

init/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ config WERROR
151151
default COMPILE_TEST
152152
help
153153
A kernel build should not cause any compiler warnings, and this
154-
enables the '-Werror' flag to enforce that rule by default.
154+
enables the '-Werror' (for C) and '-Dwarnings' (for Rust) flags
155+
to enforce that rule by default.
155156

156157
However, if you have a new (or very old) compiler with odd and
157158
unusual warnings, or you have some architecture with problems,

0 commit comments

Comments
 (0)