mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-13 20:26:03 +08:00
Disable deprecated warnings for SVD tests on MSVC.
This commit is contained in:
parent
3d7e2d0e3e
commit
d58e629130
@ -13,8 +13,10 @@
|
|||||||
// We explicitly disable deprecated declarations for this set of tests
|
// We explicitly disable deprecated declarations for this set of tests
|
||||||
// because we purposely verify assertions for the deprecated SVD runtime
|
// because we purposely verify assertions for the deprecated SVD runtime
|
||||||
// option behavior.
|
// option behavior.
|
||||||
#ifdef __GNUC__
|
#if defined(__GNUC__)
|
||||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
#pragma warning( disable : 4996 )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// discard stack allocation as that too bypasses malloc
|
// discard stack allocation as that too bypasses malloc
|
||||||
|
@ -11,8 +11,10 @@
|
|||||||
// We explicitly disable deprecated declarations for this set of tests
|
// We explicitly disable deprecated declarations for this set of tests
|
||||||
// because we purposely verify assertions for the deprecated SVD runtime
|
// because we purposely verify assertions for the deprecated SVD runtime
|
||||||
// option behavior.
|
// option behavior.
|
||||||
#ifdef __GNUC__
|
#if defined(__GNUC__)
|
||||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
#pragma warning( disable : 4996 )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// discard stack allocation as that too bypasses malloc
|
// discard stack allocation as that too bypasses malloc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user