diff options
Diffstat (limited to 'tests/multi_span_tests.cpp')
-rw-r--r-- | tests/multi_span_tests.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/tests/multi_span_tests.cpp b/tests/multi_span_tests.cpp index 0aa0ff9..7e3ec89 100644 --- a/tests/multi_span_tests.cpp +++ b/tests/multi_span_tests.cpp @@ -17,14 +17,8 @@ #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 : 4996) // multi_span is in the process of being deprecated. - // Suppressing warnings until it is completely removed -#endif +#pragma warning(disable : 26440 26426) // from catch -#if __clang__ || __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif #include <catch/catch.hpp> // for AssertionHandler, StringRef, CHECK, CHECK... @@ -1226,8 +1220,6 @@ TEST_CASE("md_access") expected += 3; } } - - delete[] image_ptr; } GSL_SUPPRESS(con.4) // NO-FORMAT: attribute @@ -1624,8 +1616,6 @@ TEST_CASE("span_structure_size") multi_span<const double, dynamic_range, 6, 4> av2 = as_multi_span(av1, dim(5), dim<6>(), dim<4>()); (void) av2; - - delete[] arr; } GSL_SUPPRESS(con.4) // NO-FORMAT: attribute @@ -1793,7 +1783,3 @@ TEST_CASE("iterator") #ifdef CONFIRM_COMPILATION_ERRORS copy(src_span_static, dst_span_static); #endif - -#if __clang__ || __GNUC__ -#pragma GCC diagnostic pop -#endif |