mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-23 23:03:15 +08:00
Disable denorm deprecation warnings in MSVC C++23.
This commit is contained in:
parent
176821f2f7
commit
48b254a4bc
@ -21,6 +21,11 @@
|
|||||||
#pragma warning( push )
|
#pragma warning( push )
|
||||||
#endif
|
#endif
|
||||||
#pragma warning( disable : 4100 4101 4127 4181 4211 4244 4273 4324 4503 4512 4522 4700 4714 4717 4800)
|
#pragma warning( disable : 4100 4101 4127 4181 4211 4244 4273 4324 4503 4512 4522 4700 4714 4717 4800)
|
||||||
|
// We currently rely on has_denorm in tests, and need it defined correctly for half/bfloat16.
|
||||||
|
#ifndef _SILENCE_CXX23_DENORM_DEPRECATION_WARNING
|
||||||
|
#define EIGEN_REENABLE_CXX23_DENORM_DEPRECATION_WARNING 1
|
||||||
|
#define _SILENCE_CXX23_DENORM_DEPRECATION_WARNING
|
||||||
|
#endif
|
||||||
|
|
||||||
#elif defined __INTEL_COMPILER
|
#elif defined __INTEL_COMPILER
|
||||||
// 2196 - routine is both "inline" and "noinline" ("noinline" assumed)
|
// 2196 - routine is both "inline" and "noinline" ("noinline" assumed)
|
||||||
|
@ -8,6 +8,11 @@
|
|||||||
#ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
|
#ifndef EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning( pop )
|
#pragma warning( pop )
|
||||||
|
#ifdef EIGEN_REENABLE_CXX23_DENORM_DEPRECATION_WARNING
|
||||||
|
#undef EIGEN_REENABLE_CXX23_DENORM_DEPRECATION_WARNING
|
||||||
|
#undef _SILENCE_CXX23_DENORM_DEPRECATION_WARNING
|
||||||
|
#endif
|
||||||
|
|
||||||
#elif defined __INTEL_COMPILER
|
#elif defined __INTEL_COMPILER
|
||||||
#pragma warning pop
|
#pragma warning pop
|
||||||
#elif defined __clang__
|
#elif defined __clang__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user