dzn: Disable Wunused-value for C++ files
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17423>
This commit is contained in:
parent
10e8e0b9d6
commit
6c1ab8fdeb
|
@ -57,6 +57,7 @@ dzn_deps = [
|
|||
]
|
||||
|
||||
dzn_flags = [ ]
|
||||
dzn_cpp_flags = [ ]
|
||||
|
||||
if with_platform_windows
|
||||
dzn_flags += '-DVK_USE_PLATFORM_WIN32_KHR'
|
||||
|
@ -72,6 +73,7 @@ if cc.get_argument_syntax() != 'msvc'
|
|||
'-Werror=switch',
|
||||
]
|
||||
dzn_flags += cc.get_supported_arguments(dzn_flags_to_try)
|
||||
dzn_cpp_flags = cpp.get_supported_arguments(['-Wno-error=unused-value'])
|
||||
endif
|
||||
|
||||
libvulkan_dzn = shared_library(
|
||||
|
@ -84,6 +86,7 @@ libvulkan_dzn = shared_library(
|
|||
],
|
||||
dependencies : [dzn_deps, idep_vulkan_wsi],
|
||||
c_args : dzn_flags,
|
||||
cpp_args : dzn_cpp_flags,
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
link_args : [ld_args_bsymbolic, ld_args_gc_sections],
|
||||
name_prefix : host_machine.system() == 'windows' ? '' : 'lib',
|
||||
|
|
Loading…
Reference in New Issue