Skip to content

Commit d66b6da

Browse files
committed
add JSONCPP_NORETURN where appropriate
Found with clang's -Wmissing-noreturn Signed-off-by: Rosen Penev <rosenp@gmail.com>
1 parent 1a708ad commit d66b6da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/json/value.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,8 @@ class JSON_API ValueIterator : public ValueIteratorBase {
881881
using SelfType = ValueIterator;
882882

883883
ValueIterator();
884-
JSONCPP_OP_EXPLICIT ValueIterator(const ValueConstIterator& other);
884+
JSONCPP_NORETURN JSONCPP_OP_EXPLICIT
885+
ValueIterator(const ValueConstIterator& other);
885886
ValueIterator(const ValueIterator& other);
886887

887888
private:

0 commit comments

Comments
 (0)