aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bounds_tests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bounds_tests.cpp')
-rw-r--r--tests/bounds_tests.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/bounds_tests.cpp b/tests/bounds_tests.cpp
index e586d44..d72e31a 100644
--- a/tests/bounds_tests.cpp
+++ b/tests/bounds_tests.cpp
@@ -18,6 +18,12 @@
// 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) // use of function or classes marked [[deprecated]]
+#endif
+
+#if __clang__ || __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
#include <catch/catch.hpp> // for AssertionHandler, StringRef, TEST_CASE
@@ -113,3 +119,7 @@ TEST_CASE("bounds_convertible")
#ifdef CONFIRM_COMPILATION_ERRORS
copy(src_span_static, dst_span_static);
#endif
+
+#if __clang__ || __GNUC__
+#pragma GCC diagnostic pop
+#endif