Mesa (main): dzn: Disable Wunused-value for C++ files
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Jul 9 14:39:11 UTC 2022
Module: Mesa
Branch: main
Commit: 6c1ab8fdebfca4c8f3f501a4e0606e8e07d4ba35
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6c1ab8fdebfca4c8f3f501a4e0606e8e07d4ba35
Author: Jesse Natalie <jenatali at microsoft.com>
Date: Fri Jul 8 07:53:10 2022 -0700
dzn: Disable Wunused-value for C++ files
Reviewed-by: Boris Brezillon <boris.brezillon at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17423>
---
src/microsoft/vulkan/meson.build | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/microsoft/vulkan/meson.build b/src/microsoft/vulkan/meson.build
index c61ba03add8..990fe675a20 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',
More information about the mesa-commit
mailing list