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 <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2021-10-24 08:04:42 +00:00 committed by Liam Girdwood
parent 0c66aa9122
commit ecb921227e
1 changed files with 1 additions and 1 deletions

View File

@ -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")