Disable deprecated warnings for SVD tests on MSVC.

(cherry picked from commit d58e62913081d3667605fd3fa9d525d4e378dd00)
This commit is contained in:
Antonio Sánchez 2022-02-24 21:20:49 +00:00 committed by C. Antonio Sanchez
parent bb1dbb4df6
commit 72e38684c1
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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