From: Jesse Natalie Date: Fri, 8 Jul 2022 14:53:10 +0000 (-0700) Subject: dzn: Disable Wunused-value for C++ files X-Git-Tag: upstream/22.3.5~6375 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c1ab8fdebfca4c8f3f501a4e0606e8e07d4ba35;p=platform%2Fupstream%2Fmesa.git dzn: Disable Wunused-value for C++ files Reviewed-by: Boris Brezillon Part-of: --- diff --git a/src/microsoft/vulkan/meson.build b/src/microsoft/vulkan/meson.build index c61ba03..990fe67 100644 --- a/src/microsoft/vulkan/meson.build +++ b/src/microsoft/vulkan/meson.build @@ -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',