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:
authorJordan Maples [MSFT] <49793787+JordanMaples@users.noreply.github.com>2019-12-04 23:30:58 +0300
committerJordan Maples [MSFT] <49793787+JordanMaples@users.noreply.github.com>2019-12-04 23:30:58 +0300
commit43aca2646ba992eb56d32163c9b6867e5be3d5da (patch)
tree3018ef3ca3e6041286d639376fef43d9ee304fdc /tests/algorithm_tests.cpp
parent603b4671c1e789253cfd2cdea716ff1f2047a870 (diff)
ignore warnings from gtest
Diffstat (limited to 'tests/algorithm_tests.cpp')
-rw-r--r--tests/algorithm_tests.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/algorithm_tests.cpp b/tests/algorithm_tests.cpp
index 9345e95..96bfb93 100644
--- a/tests/algorithm_tests.cpp
+++ b/tests/algorithm_tests.cpp
@@ -20,6 +20,13 @@
#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_algorithm> // for copy
@@ -214,3 +221,7 @@ TEST(algorithm_tests, small_destination_span)
copy(src_span_static, dst_span_static);
#endif
}
+
+#if __clang__ || __GNUC__
+#pragma GCC diagnostic pop
+#endif