Commit 6caa1646 authored by Joe Peplowski's avatar Joe Peplowski Committed by Facebook Github Bot

Fix throw_exception with -fno-exceptions -Werror=unused-parameter

Summary: Fix `throw_exception` with ` -fno-exceptions -Werror=unused-parameter`.

Reviewed By: yfeldblum

Differential Revision: D9693907

fbshipit-source-id: d308147b7d69cf091a9f839fda8be3464aa94b9a
parent 1958c549
......@@ -30,6 +30,7 @@ namespace folly {
template <typename Ex>
[[noreturn]] FOLLY_NOINLINE FOLLY_COLD void throw_exception(Ex&& ex) {
#if (__GNUC__ && !__EXCEPTIONS)
(void)ex;
std::terminate();
#else
throw static_cast<Ex&&>(ex);
......
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