We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d97ea5b commit 0b597b4Copy full SHA for 0b597b4
src/lib_json/json_value.cpp
@@ -171,11 +171,11 @@ RuntimeError::RuntimeError(JSONCPP_STRING const& msg)
171
LogicError::LogicError(JSONCPP_STRING const& msg)
172
: Exception(msg)
173
{}
174
-void throwRuntimeError(JSONCPP_STRING const& msg)
+JSONCPP_NORETURN void throwRuntimeError(JSONCPP_STRING const& msg)
175
{
176
throw RuntimeError(msg);
177
}
178
-void throwLogicError(JSONCPP_STRING const& msg)
+JSONCPP_NORETURN void throwLogicError(JSONCPP_STRING const& msg)
179
180
throw LogicError(msg);
181
0 commit comments