Skip to content

Commit 8af037c

Browse files
committed
Enable unreachable code warnings for clang
Signed-off-by: Dave Rodgman <[email protected]>
1 parent 59adea0 commit 8af037c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/bin/mtest

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ ASAN_CFLAGS = "-fsanitize=address -fno-common -fsanitize=undefined -fno-saniti
6161
ASAN_LDFLAGS = ASAN_CFLAGS
6262

6363
WARNING_FLAGS = {
64-
"clang": "-Werror -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wimplicit-fallthrough -Wshadow -Wvla -Wformat=2 -Wno-format-nonliteral -Wshadow -Wasm-operand-widths",
64+
"clang": "-Werror -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wimplicit-fallthrough -Wshadow -Wvla -Wformat=2 -Wno-format-nonliteral -Wshadow -Wasm-operand-widths -Wunreachable-code",
6565
"gcc" : "-Werror -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wimplicit-fallthrough -Wshadow -Wvla -Wformat=2 -Wno-format-nonliteral -Wshadow -Wformat-signedness -Wformat-overflow=2 -Wformat-truncation -Wlogical-op"
6666
}
6767
WARNING_FLAGS["arm-none-eabi-gcc"] = WARNING_FLAGS["gcc"]

0 commit comments

Comments
 (0)