Skip to content

Commit 0b597b4

Browse files
committed
Added NORETURN for throw functions.
Fix in definition also.
1 parent d97ea5b commit 0b597b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/lib_json/json_value.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@ RuntimeError::RuntimeError(JSONCPP_STRING const& msg)
171171
LogicError::LogicError(JSONCPP_STRING const& msg)
172172
: Exception(msg)
173173
{}
174-
void throwRuntimeError(JSONCPP_STRING const& msg)
174+
JSONCPP_NORETURN void throwRuntimeError(JSONCPP_STRING const& msg)
175175
{
176176
throw RuntimeError(msg);
177177
}
178-
void throwLogicError(JSONCPP_STRING const& msg)
178+
JSONCPP_NORETURN void throwLogicError(JSONCPP_STRING const& msg)
179179
{
180180
throw LogicError(msg);
181181
}

0 commit comments

Comments
 (0)