From f8d6b3d568243a2b507bb15dcccac53c4678ba14 Mon Sep 17 00:00:00 2001 From: "L. E. Segovia" Date: Sat, 12 Oct 2024 19:01:13 -0300 Subject: [PATCH] meson: d3d11: fix build with MinGW GCC 14 In my tests with the new GCC 14 compiler for Cerbero, I got the following error: > In file included from include/directxmath/DirectXMath.h:2275, > from ../gst-libs/gst/d3d11/gstd3d11converter.cpp:46: > include/directxmath/DirectXMathMatrix.inl: In function 'bool > DirectX::XMMatrixDecompose(XMVECTOR*, XMVECTOR*, XMVECTOR*, FXMMATRIX)': > include/directxmath/DirectXMathMatrix.inl:1161:16: > error: variable 'aa' set but not used [-Werror=unused-but-set-variable] Part-of: --- subprojects/gst-plugins-bad/gst-libs/gst/d3d11/meson.build | 2 ++ subprojects/gst-plugins-bad/sys/d3d11/meson.build | 2 ++ 2 files changed, 4 insertions(+) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/meson.build b/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/meson.build index fc24571e6e..d03eabd3c7 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/meson.build +++ b/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/meson.build @@ -176,6 +176,8 @@ endif if cc.get_id() != 'msvc' extra_args = cc.get_supported_arguments([ '-Wno-redundant-decls', + # include/directxmath/DirectXMathMatrix.inl:1161:16: error: variable 'aa' set but not used + '-Wno-unused-but-set-variable', ]) extra_comm_args += extra_args diff --git a/subprojects/gst-plugins-bad/sys/d3d11/meson.build b/subprojects/gst-plugins-bad/sys/d3d11/meson.build index 8ac208ae82..f33358f105 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/meson.build +++ b/subprojects/gst-plugins-bad/sys/d3d11/meson.build @@ -121,6 +121,8 @@ endif if cc.get_id() != 'msvc' extra_mingw_args = cc.get_supported_arguments([ '-Wno-redundant-decls', + # include/directxmath/DirectXMathMatrix.inl:1161:16: error: variable 'aa' set but not used + '-Wno-unused-but-set-variable', ]) extra_args += extra_mingw_args