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/byte_tests.cpp | |
parent | 603b4671c1e789253cfd2cdea716ff1f2047a870 (diff) |
ignore warnings from gtest
Diffstat (limited to 'tests/byte_tests.cpp')
-rw-r--r-- | tests/byte_tests.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/byte_tests.cpp b/tests/byte_tests.cpp index 0a8a1f6..6d3342a 100644 --- a/tests/byte_tests.cpp +++ b/tests/byte_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_byte> // for to_byte, to_integer, byte, operator&, ope... @@ -133,3 +141,7 @@ TEST(byte_tests, aliasing) #ifdef CONFIRM_COMPILATION_ERRORS copy(src_span_static, dst_span_static); #endif + +#if __clang__ || __GNUC__ +#pragma GCC diagnostic pop +#endif |