diff --git a/test/bdcsvd.cpp b/test/bdcsvd.cpp index d44946880..b8ff0fdaa 100644 --- a/test/bdcsvd.cpp +++ b/test/bdcsvd.cpp @@ -13,8 +13,10 @@ // We explicitly disable deprecated declarations for this set of tests // because we purposely verify assertions for the deprecated SVD runtime // option behavior. -#ifdef __GNUC__ +#if defined(__GNUC__) #pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#elif defined(_MSC_VER) +#pragma warning( disable : 4996 ) #endif // discard stack allocation as that too bypasses malloc diff --git a/test/jacobisvd.cpp b/test/jacobisvd.cpp index 34e97ab3e..c8818c88b 100644 --- a/test/jacobisvd.cpp +++ b/test/jacobisvd.cpp @@ -11,8 +11,10 @@ // We explicitly disable deprecated declarations for this set of tests // because we purposely verify assertions for the deprecated SVD runtime // option behavior. -#ifdef __GNUC__ +#if defined(__GNUC__) #pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#elif defined(_MSC_VER) +#pragma warning( disable : 4996 ) #endif // discard stack allocation as that too bypasses malloc