mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Disable deprecated warnings for SVD tests on MSVC.
(cherry picked from commit d58e629130)
This commit is contained in:
committed by
C. Antonio Sanchez
parent
bb1dbb4df6
commit
72e38684c1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user