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/at_tests.cpp | |
parent | 603b4671c1e789253cfd2cdea716ff1f2047a870 (diff) |
ignore warnings from gtest
Diffstat (limited to 'tests/at_tests.cpp')
-rw-r--r-- | tests/at_tests.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/at_tests.cpp b/tests/at_tests.cpp index fb007b8..67e8729 100644 --- a/tests/at_tests.cpp +++ b/tests/at_tests.cpp @@ -20,7 +20,15 @@ #pragma warning(disable : 26440 26426) // from catch #endif -#include <gtest/gtest.h> +#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_util> // for at @@ -115,3 +123,6 @@ static constexpr bool test_constexpr() static_assert(test_constexpr(), "FAIL"); #endif +#if __clang__ || __GNUC__ +#pragma GCC diagnostic pop +#endif |