radv,aco: Compile with -Wimplicit-fallthrough when available

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7847>
This commit is contained in:
Tony Wasserka 2020-12-01 12:31:05 +01:00 committed by Marge Bot
parent 6ba83d820c
commit ada9be1ec9
2 changed files with 2 additions and 2 deletions

View file

@ -86,7 +86,7 @@ libaco_files = files(
'aco_validate.cpp',
)
cpp_args_aco = cpp.get_supported_arguments(['-fno-exceptions', '-fno-rtti', '-Wshadow', '-DNOMINMAX'])
cpp_args_aco = cpp.get_supported_arguments(['-fno-exceptions', '-fno-rtti', '-Wimplicit-fallthrough', '-Wshadow', '-DNOMINMAX'])
_libaco = static_library(
'aco',

View file

@ -119,7 +119,7 @@ if not with_platform_windows
endif
radv_deps = []
radv_flags = cc.get_supported_arguments(['-Wshadow'])
radv_flags = cc.get_supported_arguments(['-Wimplicit-fallthrough', '-Wshadow'])
if with_platform_x11
radv_deps += dep_xcb_dri3