summaryrefslogtreecommitdiffstats
path: root/contrib/libs/cxxsupp/libcxx/src/future.cpp
diff options
context:
space:
mode:
authorAndrey Khalyavin <[email protected]>2022-07-05 23:56:28 +0300
committerAndrey Khalyavin <[email protected]>2022-07-05 23:56:28 +0300
commit41223d67bc008890be4c26f2860a749faad77d15 (patch)
treea31baff5f563db0e7f6bc0699f1a3f8b6e461311 /contrib/libs/cxxsupp/libcxx/src/future.cpp
parent7cca6053f9af9db0dce2fc1c9bf1bad0910cdceb (diff)
Update libc++ to a7c2a628 (15 Feb 2022).
Notable changes: * macros for disabling and enabling compile warnings * replace _VSTD with std in __ranges * add stdatomic.h * implement unreachable() * implement ranges::rbegin, rend, crbegin and crend * remove experimental/filesystem header ref:3104f711bf2401dd8b882290fa4fa01f71924406
Diffstat (limited to 'contrib/libs/cxxsupp/libcxx/src/future.cpp')
-rw-r--r--contrib/libs/cxxsupp/libcxx/src/future.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/src/future.cpp b/contrib/libs/cxxsupp/libcxx/src/future.cpp
index 177fe7523eb..07ae9389ec2 100644
--- a/contrib/libs/cxxsupp/libcxx/src/future.cpp
+++ b/contrib/libs/cxxsupp/libcxx/src/future.cpp
@@ -29,13 +29,9 @@ __future_error_category::name() const noexcept
return "future";
}
-#if defined(__clang__)
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wswitch"
-#elif defined(__GNUC__) || defined(__GNUG__)
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wswitch"
-#endif
+_LIBCPP_DIAGNOSTIC_PUSH
+_LIBCPP_CLANG_DIAGNOSTIC_IGNORED("-Wswitch")
+_LIBCPP_GCC_DIAGNOSTIC_IGNORED("-Wswitch")
string
__future_error_category::message(int ev) const
@@ -58,11 +54,7 @@ __future_error_category::message(int ev) const
return string("unspecified future_errc value\n");
}
-#if defined(__clang__)
-#pragma clang diagnostic pop
-#elif defined(__GNUC__) || defined(__GNUG__)
-#pragma GCC diagnostic pop
-#endif
+_LIBCPP_DIAGNOSTIC_POP
const error_category&
future_category() noexcept