diff options
author | Roelf-Jilling <r-j.wolthuis@live.com> | 2020-01-14 19:09:27 +0300 |
---|---|---|
committer | Roelf-Jilling <r-j.wolthuis@live.com> | 2020-01-16 13:49:00 +0300 |
commit | 186f5d21c13c2b8dffa86ba5610afedfafebd13b (patch) | |
tree | 25c329cfcfc64938cf85ac8f99a602e81b8c26c7 /tests/byte_tests.cpp | |
parent | 888b9b9723a355ea40e62e0fa3b04a625962689e (diff) |
Move compiler warning suppression for tests from cpp files to CMake
Diffstat (limited to 'tests/byte_tests.cpp')
-rw-r--r-- | tests/byte_tests.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/byte_tests.cpp b/tests/byte_tests.cpp index ab243a7..45ba66d 100644 --- a/tests/byte_tests.cpp +++ b/tests/byte_tests.cpp @@ -20,19 +20,6 @@ #pragma warning(disable : 26440 26426) #endif // _MSC_VER -#if __clang__ || __GNUC__ -//disable warnings from gtest -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wundef" -#endif // __clang__ || __GNUC__ - -#if __clang__ -#pragma GCC diagnostic ignored "-Wglobal-constructors" -#pragma GCC diagnostic ignored "-Wused-but-marked-unused" -#pragma GCC diagnostic ignored "-Wcovered-switch-default" -#pragma GCC diagnostic ignored "-Winconsistent-missing-destructor-override" -#endif // __clang__ - #include <gtest/gtest.h> #include <gsl/gsl_byte> // for to_byte, to_integer, byte, operator&, ope... @@ -146,7 +133,3 @@ TEST(byte_tests, aliasing) #ifdef CONFIRM_COMPILATION_ERRORS copy(src_span_static, dst_span_static); #endif - -#if __clang__ || __GNUC__ -#pragma GCC diagnostic pop -#endif // __clang__ || __GNUC__ |