Commit 7e195929 authored by Chad Austin's avatar Chad Austin Committed by Facebook Github Bot

ensure folly uses no deprecated entities

Summary:
In preparation for adding a deprecation annotation to
Synchronized::operator->, ensure that folly builds deprecation-clean.

Reviewed By: yfeldblum

Differential Revision: D18351118

fbshipit-source-id: f90a230d24a95e3983989d2c3caf7a4383a8226a
parent 2b501f7f
...@@ -14,6 +14,12 @@ ...@@ -14,6 +14,12 @@
* limitations under the License. * limitations under the License.
*/ */
#include <folly/Portability.h>
// Allow tests for keys that throw in copy/move constructors. This
// warning has to be disabled before the templates are defined in the
// header to have any effect.
FOLLY_GNU_DISABLE_WARNING("-Wdeprecated-declarations")
#include <folly/container/F14Set.h> #include <folly/container/F14Set.h>
#include <unordered_map> #include <unordered_map>
......
...@@ -38,7 +38,7 @@ timed_wait(Awaitable awaitable, Duration duration) { ...@@ -38,7 +38,7 @@ timed_wait(Awaitable awaitable, Duration duration) {
detail::lift_lvalue_reference_t<semi_await_result_t<Awaitable>>>>> detail::lift_lvalue_reference_t<semi_await_result_t<Awaitable>>>>>
result; result;
futures::sleepUnsafe(duration).setCallback_( futures::sleep(duration).toUnsafeFuture().setCallback_(
[posted, &baton, executor = co_await co_current_executor]( [posted, &baton, executor = co_await co_current_executor](
auto&&, auto&&) { auto&&, auto&&) {
if (!posted->exchange(true, std::memory_order_relaxed)) { if (!posted->exchange(true, std::memory_order_relaxed)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment