Skip to content

Commit aec261a

Browse files
committed
NORETURN for throw functions in 0.x.y branch
Added in definition also.
1 parent 20564b3 commit aec261a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib_json/json_value.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ RuntimeError::RuntimeError(std::string const& msg)
168168
LogicError::LogicError(std::string const& msg)
169169
: Exception(msg)
170170
{}
171-
void throwRuntimeError(std::string const& msg)
171+
JSONCPP_NORETURN void throwRuntimeError(std::string const& msg)
172172
{
173173
throw RuntimeError(msg);
174174
}
175-
void throwLogicError(std::string const& msg)
175+
JSONCPP_NORETURN void throwLogicError(std::string const& msg)
176176
{
177177
throw LogicError(msg);
178178
}

0 commit comments

Comments
 (0)