adding clang/gcc suppression of the deprecation warnings.

This commit is contained in:
Jordan Maples
2019-10-04 12:38:55 -07:00
parent 7adf7eb6fe
commit 2b8f7aea32
4 changed files with 34 additions and 1 deletions
+8
View File
@@ -20,7 +20,11 @@
#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...
@@ -796,3 +800,7 @@ TEST_CASE("strided_span_conversion")
i++;
}
}
#if __clang__ || __GNUC__
#pragma GCC diagnostic pop
#endif