From ecb921227e88a8797bf2f2719bcc99411b32323f Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Sun, 24 Oct 2021 08:04:42 +0000 Subject: [PATCH] cmake: drop '3' from -Wimplicit-fallthrough=3, it's the default value From the gcc documentation: '-Wimplicit-fallthrough' '-Wimplicit-fallthrough' is the same as '-Wimplicit-fallthrough=3' and '-Wno-implicit-fallthrough' is the same as '-Wimplicit-fallthrough=0'. clang supports only the number-less option. Signed-off-by: Marc Herbert --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b09760007..29bbb456e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,7 @@ add_executable(rimage ) target_compile_options(rimage PRIVATE - -Wall -Werror -Wl,-EL -Wmissing-prototypes -Wimplicit-fallthrough=3 + -Wall -Werror -Wl,-EL -Wmissing-prototypes -Wimplicit-fallthrough ) target_link_libraries(rimage PRIVATE "-lcrypto")