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:
@@ -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',
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user