Skip to content

Commit a85ce03

Browse files
committed
Fix end-of-non-void-function error with NDEBUG
1 parent 565fd1c commit a85ce03

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/tao/json/self_contained.hh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ namespace tao
4747
case type::RAW_PTR:
4848
return false;
4949
}
50-
assert( false ); // LCOV_EXCL_LINE
50+
// LCOV_EXCL_START
51+
assert( false );
52+
return false;
53+
// LCOV_EXCL_STOP
5154
}
5255

5356
// removes all RAW_PTR nodes, recursively, by copying their pointed-to content

0 commit comments

Comments
 (0)