From ae995c0f88e56680f5b8e18aa51ed6bee8776c6b Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sat, 2 May 2020 11:47:28 +0200 Subject: build: Set implicit fallthrough warning level 4 GCC 9.3.0 started complaining despite the /* FALLTHRU */ comments. Apparently this changed level. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fc728a21..5d09ed1c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,7 +64,7 @@ test_and_set_c_compiler_flag_global(-Wall) # explicitly add other flags in -Wextra test_and_set_c_compiler_flag_global(-Wempty-body) test_and_set_c_compiler_flag_global(-Wignored-qualifiers) -test_and_set_c_compiler_flag_global(-Wimplicit-fallthrough) +test_and_set_c_compiler_flag_global(-Wimplicit-fallthrough=4) test_and_set_c_compiler_flag_global(-Wmissing-field-initializers) test_and_set_c_compiler_flag_global(-Wmissing-parameter-type) test_and_set_c_compiler_flag_global(-Wold-style-declaration) -- cgit v1.2.3