mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
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:
parent
6b94f22bd6
commit
f8d6b3d568
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue