mirror of
https://github.com/microsoft/DirectXTex
synced 2024-11-15 00:51:05 +00:00
Silenced some warnings when using Intel C++ compiler
This commit is contained in:
parent
62ff7da94b
commit
f6506c1216
@ -1664,12 +1664,12 @@ void D3DX_BC6H::Decode(bool bSigned, HDRColorA* pOut) const
|
||||
|
||||
if (ms_aModeToInfo[uMode] >= 0)
|
||||
{
|
||||
assert(ms_aModeToInfo[uMode] < ARRAYSIZE(ms_aInfo));
|
||||
_Analysis_assume_(ms_aModeToInfo[uMode] < ARRAYSIZE(ms_aInfo));
|
||||
assert(static_cast<unsigned int>(ms_aModeToInfo[uMode]) < _countof(ms_aInfo));
|
||||
_Analysis_assume_(ms_aModeToInfo[uMode] < _countof(ms_aInfo));
|
||||
const ModeDescriptor* desc = ms_aDesc[ms_aModeToInfo[uMode]];
|
||||
|
||||
assert(ms_aModeToInfo[uMode] < ARRAYSIZE(ms_aDesc));
|
||||
_Analysis_assume_(ms_aModeToInfo[uMode] < ARRAYSIZE(ms_aDesc));
|
||||
assert(static_cast<unsigned int>(ms_aModeToInfo[uMode]) < _countof(ms_aDesc));
|
||||
_Analysis_assume_(ms_aModeToInfo[uMode] < _countof(ms_aDesc));
|
||||
const ModeInfo& info = ms_aInfo[ms_aModeToInfo[uMode]];
|
||||
|
||||
INTEndPntPair aEndPts[BC6H_MAX_REGIONS] = {};
|
||||
|
@ -42,6 +42,11 @@
|
||||
// C4986 exception specification does not match previous declaration
|
||||
// C5029 nonstandard extension used
|
||||
|
||||
#ifdef __INTEL_COMPILER
|
||||
#pragma warning(disable : 161)
|
||||
// warning #161: unrecognized #pragma
|
||||
#endif
|
||||
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 4005)
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
|
Loading…
Reference in New Issue
Block a user