Commit 3a9d2d47 authored by Andrew Gallagher's avatar Andrew Gallagher Committed by Facebook GitHub Bot

Fix `-Wnested-anon-types`

Reviewed By: igorsugak

Differential Revision: D32415926

fbshipit-source-id: b62ac87215800eed8e6cf8acf92f0518b9a56da5
parent ca7bdc77
...@@ -250,12 +250,14 @@ class Baton { ...@@ -250,12 +250,14 @@ class Baton {
static constexpr intptr_t TIMEOUT = -2; static constexpr intptr_t TIMEOUT = -2;
static constexpr intptr_t THREAD_WAITING = -3; static constexpr intptr_t THREAD_WAITING = -3;
union { struct _futex_wrapper {
std::atomic<intptr_t> waiter_;
struct {
folly::detail::Futex<> futex{}; folly::detail::Futex<> futex{};
int32_t _unused_packing; int32_t _unused_packing;
} futex_; };
union {
std::atomic<intptr_t> waiter_;
struct _futex_wrapper futex_;
}; };
}; };
......
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