From 0b597b4b48b25e5d4a3b103b8e1d04e927178fd0 Mon Sep 17 00:00:00 2001 From: Gaurav Date: Wed, 16 Mar 2016 11:17:21 +0530 Subject: [PATCH] Added NORETURN for throw functions. Fix 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 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); }