Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/GSL.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoelf-Jilling <r-j.wolthuis@live.com>2020-01-14 19:09:27 +0300
committerRoelf-Jilling <r-j.wolthuis@live.com>2020-01-16 13:49:00 +0300
commit186f5d21c13c2b8dffa86ba5610afedfafebd13b (patch)
tree25c329cfcfc64938cf85ac8f99a602e81b8c26c7 /tests/notnull_tests.cpp
parent888b9b9723a355ea40e62e0fa3b04a625962689e (diff)
Move compiler warning suppression for tests from cpp files to CMake
Diffstat (limited to 'tests/notnull_tests.cpp')
-rw-r--r--tests/notnull_tests.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/notnull_tests.cpp b/tests/notnull_tests.cpp
index 038119e..3e91cfd 100644
--- a/tests/notnull_tests.cpp
+++ b/tests/notnull_tests.cpp
@@ -23,19 +23,6 @@
#pragma warning(disable : 4702) // unreachable code
#endif
-#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/pointers> // for not_null, operator<, operator<=, operator>
@@ -558,7 +545,3 @@ 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 // __clang__ || __GNUC__