diff options
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 |