mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
c9f2b8d45a
Now compilers can recognize fatal() never returns. While GCC 4.5 dropped support for -Wunreachable-code, Clang is capable of detecting the unreachable code. $ make HOSTCC=clang HOSTCFLAGS=-Wunreachable-code-return [snip] HOSTCC scripts/mod/modpost.o scripts/mod/modpost.c:520:11: warning: 'return' will never be executed [-Wunreachable-code-return] return 0; ^ scripts/mod/modpost.c:477:10: warning: 'return' will never be executed [-Wunreachable-code-return] return 0; ^ 2 warnings generated. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nathan Chancellor <nathan@kernel.org> |
||
---|---|---|
.. | ||
.gitignore | ||
devicetable-offsets.c | ||
empty.c | ||
file2alias.c | ||
list.h | ||
Makefile | ||
mk_elfconfig.c | ||
modpost.c | ||
modpost.h | ||
sumversion.c | ||
symsearch.c |