meson: d3d12: fix build with MinGW GCC 14

Also apply the d3d11 fix since both use the same header.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7658>
This commit is contained in:
L. E. Segovia 2024-10-12 19:01:46 -03:00
parent f8d6b3d568
commit 4af2121189
2 changed files with 4 additions and 0 deletions

View file

@ -52,6 +52,8 @@ else
# MinGW 32bits compiler seems to be complaining about redundant-decls
# when ComPtr is in use. Let's just disable the warning
'-Wno-redundant-decls',
# include/directxmath/DirectXMathMatrix.inl:1161:16: error: variable 'aa' set but not used
'-Wno-unused-but-set-variable',
])
endif

View file

@ -54,6 +54,8 @@ else
# MinGW 32bits compiler seems to be complaining about redundant-decls
# when ComPtr is in use. Let's just disable the warning
'-Wno-redundant-decls',
# include/directxmath/DirectXMathMatrix.inl:1161:16: error: variable 'aa' set but not used
'-Wno-unused-but-set-variable',
])
endif