diff --git a/src/lib_json/json_value.cpp b/src/lib_json/json_value.cpp index d790363..112d86d 100644 --- a/src/lib_json/json_value.cpp +++ b/src/lib_json/json_value.cpp @@ -171,11 +171,11 @@ RuntimeError::RuntimeError(JSONCPP_STRING const& msg) LogicError::LogicError(JSONCPP_STRING const& msg) : Exception(msg) {} -void throwRuntimeError(JSONCPP_STRING const& msg) +JSONCPP_NORETURN void throwRuntimeError(JSONCPP_STRING const& msg) { throw RuntimeError(msg); } -void throwLogicError(JSONCPP_STRING const& msg) +JSONCPP_NORETURN void throwLogicError(JSONCPP_STRING const& msg) { throw LogicError(msg); }