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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7658>
This commit is contained in:
L. E. Segovia 2024-10-12 19:01:13 -03:00
parent 6b94f22bd6
commit f8d6b3d568
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -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