mirror of
https://github.com/microsoft/DirectXMath
synced 2024-11-21 20:00:12 +00:00
Suppress new clang v16 warnings (#163)
This commit is contained in:
parent
bec07458c9
commit
f8dccac0c2
@ -340,14 +340,25 @@ namespace DirectX
|
|||||||
// C4365: Off by default noise
|
// C4365: Off by default noise
|
||||||
// C6001: False positives
|
// C6001: False positives
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _PREFAST_
|
#ifdef _PREFAST_
|
||||||
#pragma prefast(push)
|
#pragma prefast(push)
|
||||||
#pragma prefast(disable : 25000, "FXMVECTOR is 16 bytes")
|
#pragma prefast(disable : 25000, "FXMVECTOR is 16 bytes")
|
||||||
#pragma prefast(disable : 26495, "Union initialization confuses /analyze")
|
#pragma prefast(disable : 26495, "Union initialization confuses /analyze")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wfloat-equal"
|
||||||
|
#pragma clang diagnostic ignored "-Wunknown-warning-option"
|
||||||
|
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "DirectXCollision.inl"
|
#include "DirectXCollision.inl"
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
#ifdef _PREFAST_
|
#ifdef _PREFAST_
|
||||||
#pragma prefast(pop)
|
#pragma prefast(pop)
|
||||||
#endif
|
#endif
|
||||||
|
@ -819,6 +819,8 @@ namespace DirectX
|
|||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Wgnu-anonymous-struct"
|
#pragma clang diagnostic ignored "-Wgnu-anonymous-struct"
|
||||||
#pragma clang diagnostic ignored "-Wnested-anon-types"
|
#pragma clang diagnostic ignored "-Wnested-anon-types"
|
||||||
|
#pragma clang diagnostic ignored "-Wunknown-warning-option"
|
||||||
|
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
@ -2167,7 +2169,10 @@ namespace DirectX
|
|||||||
|
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wfloat-equal"
|
||||||
#pragma clang diagnostic ignored "-Wundefined-reinterpret-cast"
|
#pragma clang diagnostic ignored "-Wundefined-reinterpret-cast"
|
||||||
|
#pragma clang diagnostic ignored "-Wunknown-warning-option"
|
||||||
|
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
@ -1210,8 +1210,17 @@ namespace DirectX
|
|||||||
#pragma prefast(disable : 26495, "Union initialization confuses /analyze")
|
#pragma prefast(disable : 26495, "Union initialization confuses /analyze")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wunknown-warning-option"
|
||||||
|
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "DirectXPackedVector.inl"
|
#include "DirectXPackedVector.inl"
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
#ifdef _PREFAST_
|
#ifdef _PREFAST_
|
||||||
#pragma prefast(pop)
|
#pragma prefast(pop)
|
||||||
#endif
|
#endif
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
#pragma clang diagnostic ignored "-Wshadow"
|
#pragma clang diagnostic ignored "-Wshadow"
|
||||||
#pragma clang diagnostic ignored "-Wunused-const-variable"
|
#pragma clang diagnostic ignored "-Wunused-const-variable"
|
||||||
#pragma clang diagnostic ignored "-Wunused-function"
|
#pragma clang diagnostic ignored "-Wunused-function"
|
||||||
|
#pragma clang diagnostic ignored "-Wunknown-warning-option"
|
||||||
|
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "DirectXSH.h"
|
#include "DirectXSH.h"
|
||||||
|
@ -36,6 +36,8 @@
|
|||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
#pragma clang diagnostic ignored "-Wcovered-switch-default"
|
#pragma clang diagnostic ignored "-Wcovered-switch-default"
|
||||||
#pragma clang diagnostic ignored "-Wswitch-enum"
|
#pragma clang diagnostic ignored "-Wswitch-enum"
|
||||||
|
#pragma clang diagnostic ignored "-Wunknown-warning-option"
|
||||||
|
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using namespace DirectX;
|
using namespace DirectX;
|
||||||
|
@ -31,6 +31,8 @@
|
|||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
#pragma clang diagnostic ignored "-Wcovered-switch-default"
|
#pragma clang diagnostic ignored "-Wcovered-switch-default"
|
||||||
#pragma clang diagnostic ignored "-Wswitch-enum"
|
#pragma clang diagnostic ignored "-Wswitch-enum"
|
||||||
|
#pragma clang diagnostic ignored "-Wunknown-warning-option"
|
||||||
|
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using namespace DirectX;
|
using namespace DirectX;
|
||||||
|
@ -27,6 +27,12 @@
|
|||||||
#pragma warning(disable: 6001 6262)
|
#pragma warning(disable: 6001 6262)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wunknown-warning-option"
|
||||||
|
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace XDSP
|
namespace XDSP
|
||||||
{
|
{
|
||||||
using XMVECTOR = DirectX::XMVECTOR;
|
using XMVECTOR = DirectX::XMVECTOR;
|
||||||
@ -866,6 +872,9 @@ namespace XDSP
|
|||||||
|
|
||||||
} // namespace XDSP
|
} // namespace XDSP
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user