mirror of
https://github.com/microsoft/DirectXMath
synced 2024-11-24 21:20:13 +00:00
Wrap #pragma warnings to avoid GCC compilation warnings
This commit is contained in:
parent
f8ac5aa095
commit
f4e6ac04ce
@ -97,12 +97,16 @@
|
||||
#define _XM_NO_XMVECTOR_OVERLOADS_
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4514 4820)
|
||||
// C4514/4820: Off by default noise
|
||||
#endif
|
||||
#include <math.h>
|
||||
#include <float.h>
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#ifndef _XM_NO_INTRINSICS_
|
||||
|
||||
@ -146,11 +150,15 @@
|
||||
#include "sal.h"
|
||||
#include <assert.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 4005 4668)
|
||||
// C4005/4668: Old header issue
|
||||
#endif
|
||||
#include <stdint.h>
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#if __cplusplus >= 201703L
|
||||
#define XM_ALIGNED_DATA(x) alignas(x)
|
||||
@ -322,13 +330,14 @@ namespace DirectX
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4068 4201 4365 4324 4820)
|
||||
// C4068: ignore unknown pragmas
|
||||
// C4201: nonstandard extension used : nameless struct/union
|
||||
// C4365: Off by default noise
|
||||
// C4324/4820: padding warnings
|
||||
|
||||
#endif
|
||||
#ifdef _PREFAST_
|
||||
#pragma prefast(push)
|
||||
#pragma prefast(disable : 25000, "FXMVECTOR is 16 bytes")
|
||||
@ -943,7 +952,9 @@ namespace DirectX
|
||||
#pragma prefast(pop)
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
*
|
||||
@ -2062,13 +2073,15 @@ namespace DirectX
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4068 4214 4204 4365 4616 4640 6001 6101)
|
||||
// C4068/4616: ignore unknown pragmas
|
||||
// C4214/4204: nonstandard extension used
|
||||
// C4365/4640: Off by default noise
|
||||
// C6001/6101: False positives
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef _PREFAST_
|
||||
#pragma prefast(push)
|
||||
#pragma prefast(disable : 25000, "FXMVECTOR is 16 bytes")
|
||||
@ -2184,7 +2197,9 @@ namespace DirectX
|
||||
#pragma prefast(pop)
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
} // namespace DirectX
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user