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/notnull_tests.cpp | |
parent | 603b4671c1e789253cfd2cdea716ff1f2047a870 (diff) |
ignore warnings from gtest
Diffstat (limited to 'tests/notnull_tests.cpp')
-rw-r--r-- | tests/notnull_tests.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/notnull_tests.cpp b/tests/notnull_tests.cpp index c2dfbdb..b26e618 100644 --- a/tests/notnull_tests.cpp +++ b/tests/notnull_tests.cpp @@ -23,6 +23,14 @@ #pragma warning(disable : 4702) // unreachable code #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/pointers> // for not_null, operator<, operator<=, operator> @@ -527,3 +535,7 @@ TEST(notnull_tests, TestMakeNotNull) static_assert(std::is_nothrow_move_constructible<not_null<void*>>::value, "not_null must be no-throw move constructible"); + +#if __clang__ || __GNUC__ +#pragma GCC diagnostic pop +#endif |