diff options
Diffstat (limited to 'tests/strided_span_tests.cpp')
-rw-r--r-- | tests/strided_span_tests.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/strided_span_tests.cpp b/tests/strided_span_tests.cpp index 1563d90..f201df4 100644 --- a/tests/strided_span_tests.cpp +++ b/tests/strided_span_tests.cpp @@ -17,8 +17,14 @@ #ifdef _MSC_VER // blanket turn off warnings from CppCoreCheck from catch // so people aren't annoyed by them when running the tool. -#pragma warning(disable : 26440 26426) // from catch +#pragma warning(disable : 26440 26426) // from catch deprecated +#pragma warning(disable : 4996) // strided_span is in the process of being deprecated. + // Suppressing warnings until it is completely removed +#endif +#if __clang__ || __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif #include <catch/catch.hpp> // for AssertionHandler, StringRef, CHECK, CHECK... @@ -794,3 +800,7 @@ TEST_CASE("strided_span_conversion") i++; } } + +#if __clang__ || __GNUC__ +#pragma GCC diagnostic pop +#endif |