diff options
author | Jordan Maples [MSFT] <49793787+JordanMaples@users.noreply.github.com> | 2019-12-04 23:30:58 +0300 |
---|---|---|
committer | Jordan Maples [MSFT] <49793787+JordanMaples@users.noreply.github.com> | 2019-12-04 23:30:58 +0300 |
commit | 43aca2646ba992eb56d32163c9b6867e5be3d5da (patch) | |
tree | 3018ef3ca3e6041286d639376fef43d9ee304fdc /tests/assertion_tests.cpp | |
parent | 603b4671c1e789253cfd2cdea716ff1f2047a870 (diff) |
ignore warnings from gtest
Diffstat (limited to 'tests/assertion_tests.cpp')
-rw-r--r-- | tests/assertion_tests.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/assertion_tests.cpp b/tests/assertion_tests.cpp index 6aa3830..b1d8f60 100644 --- a/tests/assertion_tests.cpp +++ b/tests/assertion_tests.cpp @@ -20,6 +20,14 @@ #pragma warning(disable : 26440 26426) // from catch #endif +#if __clang__ || __GNUC__ +//disable warnings from gtest +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wglobal-constructors" +#pragma GCC diagnostic ignored "-Wused-but-marked-unused" +#pragma GCC diagnostic ignored "-Wcovered-switch-default" +#endif + #include <gtest/gtest.h> #include <gsl/gsl_assert> // for fail_fast (ptr only), Ensures, Expects @@ -54,3 +62,7 @@ TEST(assertion_tests, ensures) EXPECT_EQ(g(2), 3); EXPECT_DEATH(g(9), ".*"); } + +#if __clang__ || __GNUC__ +#pragma GCC diagnostic pop +#endif |