ignore warnings from gtest

This commit is contained in:
Jordan Maples [MSFT]
2019-12-04 12:30:58 -08:00
parent 603b4671c1
commit 43aca2646b
13 changed files with 148 additions and 12 deletions

View File

@@ -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