1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

Add another -Wdeprecated-copy hack for gtest

This commit is contained in:
Benjamin Kramer 2021-05-14 20:37:03 +02:00
parent b6481c1141
commit 04507ada14

View File

@ -58,6 +58,13 @@
# pragma warning(disable:4100)
#endif
#ifdef __clang__
#if __has_warning("-Wdeprecated-copy")
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-copy"
#endif
#endif
namespace testing {
// To implement an action Foo, define:
@ -1136,6 +1143,12 @@ inline ::std::reference_wrapper<T> ByRef(T& l_value) { // NOLINT
} // namespace testing
#ifdef __clang__
#if __has_warning("-Wdeprecated-copy")
#pragma clang diagnostic pop
#endif
#endif
#ifdef _MSC_VER
# pragma warning(pop)
#endif