From: Peter Griess Date: Thu, 26 Dec 2013 21:32:41 +0000 (-0800) Subject: Remove FOLLY_NORETURN from definition. X-Git-Tag: v0.22.0~744 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4d6d659d59c3d0a9f92c099ff2b53bee8e95bad7;p=folly.git Remove FOLLY_NORETURN from definition. Summary: - Remove FOLLY_NORETURN from function definitions, which was causing compilation errors on some platforms. Test Plan: - Compile on Mac OS X with Clang Reviewed By: tudorb@fb.com FB internal diff: D1111416 --- diff --git a/folly/detail/FunctionalExcept.cpp b/folly/detail/FunctionalExcept.cpp index a6986f7d..f569f945 100644 --- a/folly/detail/FunctionalExcept.cpp +++ b/folly/detail/FunctionalExcept.cpp @@ -20,15 +20,15 @@ FOLLY_NAMESPACE_STD_BEGIN -void __throw_length_error(const char* msg) FOLLY_NORETURN { +void __throw_length_error(const char* msg) { throw std::length_error(msg); } -void __throw_logic_error(const char* msg) FOLLY_NORETURN { +void __throw_logic_error(const char* msg) { throw std::logic_error(msg); } -void __throw_out_of_range(const char* msg) FOLLY_NORETURN { +void __throw_out_of_range(const char* msg) { throw std::out_of_range(msg); }