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

Revert "Only ignore -Wdeprecated-copy if the used compiler supports the warning"

This reverts commit b125c034af89e32d5258d593080ff0c4810776a0.

Some bots say " missing binary operator before token "(" "
This commit is contained in:
Dávid Bolvanský 2021-04-26 16:08:18 +02:00
parent 09a5318bae
commit 12716a3cca
3 changed files with 6 additions and 6 deletions

View File

@ -58,7 +58,7 @@
# include <initializer_list> // NOLINT -- must be after gtest.h
#endif
#if defined(__clang__) && __has_warning("-Wdeprecated-copy")
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-copy"
#endif
@ -4421,7 +4421,7 @@ inline InnerMatcher AllArgs(const InnerMatcher& matcher) { return matcher; }
} // namespace testing
#if defined(__clang__) && __has_warning("-Wdeprecated-copy")
#ifdef __clang__
#pragma clang diagnostic pop
#endif

View File

@ -55,7 +55,7 @@
//
// where all clauses are optional and WillOnce() can be repeated.
#if defined(__clang__) && __has_warning("-Wdeprecated-copy")
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-copy"
#endif
@ -96,7 +96,7 @@ GTEST_API_ void InitGoogleMock(int* argc, wchar_t** argv);
} // namespace testing
#if defined(__clang__) && __has_warning("-Wdeprecated-copy")
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // GMOCK_INCLUDE_GMOCK_GMOCK_H_

View File

@ -54,7 +54,7 @@
#if GTEST_HAS_PARAM_TEST
#if defined(__clang__) && __has_warning("-Wdeprecated-copy")
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-copy"
#endif
@ -5146,7 +5146,7 @@ CartesianProductHolder10(const Generator1& g1, const Generator2& g2,
} // namespace internal
} // namespace testing
#if defined(__clang__) && __has_warning("-Wdeprecated-copy")
#ifdef __clang__
#pragma clang diagnostic pop
#endif