From 75936c310996d7bf7df2a5a9d97cbab4bdc1547e Mon Sep 17 00:00:00 2001 From: "Jordan Maples [MSFT]" <49793787+JordanMaples@users.noreply.github.com> Date: Thu, 9 Jan 2020 12:56:00 -0800 Subject: [PATCH] missed from the merge --- tests/span_tests.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/span_tests.cpp b/tests/span_tests.cpp index b047a4e..542e2e0 100644 --- a/tests/span_tests.cpp +++ b/tests/span_tests.cpp @@ -18,17 +18,14 @@ // blanket turn off warnings from CppCoreCheck from catch // so people aren't annoyed by them when running the tool. #pragma warning(disable : 26440 26426 26497 4189 4996) - -#if __clang__ || __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wdeprecated-declarations" -#endif +#endif #if __clang__ || __GNUC__ //disable warnings from gtest #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wundef" #pragma GCC diagnostic ignored "-Wunused-variable" +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif // __clang__ || __GNUC__ #if __clang__