Commit 1456b13d authored by Erich Graham's avatar Erich Graham Committed by Facebook GitHub Bot

Ignore -Wcovered-switch-default Clang warning in Folly

Summary: These warnings appear when compiling with Clang modules. In this case, the `default` case should never be hit regardless of user input, so we may translate this to an unreachability hint.

Reviewed By: yfeldblum

Differential Revision: D30962081

fbshipit-source-id: 48914f79a8d40f597cb60b8d8d6d9af37ac4b655
parent 0ee04209
......@@ -18,6 +18,8 @@
#include <atomic>
#include <folly/lang/Assume.h>
namespace folly {
namespace detail {
......@@ -32,9 +34,9 @@ inline std::memory_order default_failure_memory_order(
case std::memory_order_consume:
case std::memory_order_acquire:
case std::memory_order_seq_cst:
default:
return successMode;
}
assume_unreachable();
}
inline char const* memory_order_to_str(std::memory_order mo) {
......
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