forked from OSchip/llvm-project
Add another -Wdeprecated-copy hack for gtest
This commit is contained in:
parent
709f2c7e14
commit
09499efb7a
|
@ -58,6 +58,13 @@
|
||||||
# pragma warning(disable:4100)
|
# pragma warning(disable:4100)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
#if __has_warning("-Wdeprecated-copy")
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wdeprecated-copy"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace testing {
|
namespace testing {
|
||||||
|
|
||||||
// To implement an action Foo, define:
|
// To implement an action Foo, define:
|
||||||
|
@ -1136,6 +1143,12 @@ inline ::std::reference_wrapper<T> ByRef(T& l_value) { // NOLINT
|
||||||
|
|
||||||
} // namespace testing
|
} // namespace testing
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
#if __has_warning("-Wdeprecated-copy")
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
# pragma warning(pop)
|
# pragma warning(pop)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue