re-enable -Wunreachable-code under clang
whitelist the valid cases showing up If an earlier version of clang is showing more cases (particularly if they don't make sense), the re-enabling of the warning in sys/unix/hints/include/compiler.2020 can be made clang-version specific instead. I had no way to test earlier versions.
This commit is contained in:
@@ -32,10 +32,7 @@ CFLAGS+=-Wall -Wextra -Wno-missing-field-initializers \
|
||||
CFLAGS+=-pedantic
|
||||
CFLAGS+=-Wmissing-declarations
|
||||
CFLAGS+=-Wformat-nonliteral
|
||||
# As of LLVM build 2336.1.00, this gives dozens of spurious messages, so
|
||||
# # leave it out by default.
|
||||
# #CFLAGS+=-Wunreachable-code
|
||||
# #
|
||||
CFLAGS+=-Wunreachable-code
|
||||
#
|
||||
# the following are not allowed in C++
|
||||
CFLAGS+=-Wimplicit
|
||||
|
||||
Reference in New Issue
Block a user