1
0
mirror of https://github.com/microsoft/DirectXMath synced 2024-11-09 14:10:09 +00:00

Suppress false 26495 warnings

This commit is contained in:
Chuck Walbourn 2018-04-17 10:22:14 -07:00
parent 15c05966ea
commit 033c653afc
4 changed files with 11 additions and 1 deletions

View File

@ -265,7 +265,7 @@ struct BoundingFrustum
: Origin(_Origin), Orientation(_Orientation),
RightSlope(_RightSlope), LeftSlope(_LeftSlope), TopSlope(_TopSlope), BottomSlope(_BottomSlope),
Near(_Near), Far(_Far) {}
BoundingFrustum( _In_ CXMMATRIX Projection ) { CreateFromMatrix( *this, Projection ); }
BoundingFrustum( _In_ CXMMATRIX Projection );
// Methods
void XM_CALLCONV Transform( _Out_ BoundingFrustum& Out, _In_ FXMMATRIX M ) const;
@ -345,6 +345,7 @@ namespace TriangleTests
#ifdef _PREFAST_
#pragma prefast(push)
#pragma prefast(disable : 25000, "FXMVECTOR is 16 bytes")
#pragma prefast(disable : 26495, "Union initialization confuses /analyze")
#endif
#include "DirectXCollision.inl"

View File

@ -2803,6 +2803,13 @@ inline void BoundingOrientedBox::CreateFromPoints( BoundingOrientedBox& Out, siz
*
****************************************************************************/
_Use_decl_annotations_
inline BoundingFrustum::BoundingFrustum( CXMMATRIX Projection )
{
CreateFromMatrix(*this, Projection);
}
//-----------------------------------------------------------------------------
// Transform a frustum by an angle preserving transform.
//-----------------------------------------------------------------------------

View File

@ -2017,6 +2017,7 @@ XMGLOBALCONST XMVECTORF32 g_UShortMax = { { { 65535.0f, 65535.0f,
#ifdef _PREFAST_
#pragma prefast(push)
#pragma prefast(disable : 25000, "FXMVECTOR is 16 bytes")
#pragma prefast(disable : 26495, "Union initialization confuses /analyze")
#endif
//------------------------------------------------------------------------------

View File

@ -1229,6 +1229,7 @@ void XM_DEPRECATED XM_CALLCONV XMStoreXDec4(_Out_ XMXDEC4* pDestination, _In_
#ifdef _PREFAST_
#pragma prefast(push)
#pragma prefast(disable : 25000, "FXMVECTOR is 16 bytes")
#pragma prefast(disable : 26495, "Union initialization confuses /analyze")
#endif
#include "DirectXPackedVector.inl"