mirror of
https://github.com/microsoft/GSL.git
synced 2025-11-17 15:59:22 +01:00
ignore warnings from gtest
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user