From aec261a899f028892efebb04bf7f1dfa01b095a4 Mon Sep 17 00:00:00 2001 From: Gaurav Date: Wed, 16 Mar 2016 11:23:36 +0530 Subject: [PATCH] NORETURN for throw functions in 0.x.y branch Added in definition also. --- src/lib_json/json_value.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib_json/json_value.cpp b/src/lib_json/json_value.cpp index 4a77d00..018b9cd 100644 --- a/src/lib_json/json_value.cpp +++ b/src/lib_json/json_value.cpp @@ -168,11 +168,11 @@ RuntimeError::RuntimeError(std::string const& msg) LogicError::LogicError(std::string const& msg) : Exception(msg) {} -void throwRuntimeError(std::string const& msg) +JSONCPP_NORETURN void throwRuntimeError(std::string const& msg) { throw RuntimeError(msg); } -void throwLogicError(std::string const& msg) +JSONCPP_NORETURN void throwLogicError(std::string const& msg) { throw LogicError(msg); }