From 4d6d659d59c3d0a9f92c099ff2b53bee8e95bad7 Mon Sep 17 00:00:00 2001 From: Peter Griess Date: Thu, 26 Dec 2013 13:32:41 -0800 Subject: [PATCH] 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 --- folly/detail/FunctionalExcept.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.34.1