Skip to content

Commit dcac05f

Browse files
committed
fix clang compiler warnings
1 parent 722546a commit dcac05f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib_json/json_reader.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ bool Reader::readValue() {
226226
currentValue().setOffsetLimit(current_ - begin_);
227227
break;
228228
} // Else, fall through...
229+
#ifdef __llvm__
230+
[[clang::fallthrough]];
231+
#endif
229232
default:
230233
currentValue().setOffsetStart(token.start_ - begin_);
231234
currentValue().setOffsetLimit(token.end_ - begin_);
@@ -1175,6 +1178,9 @@ bool OurReader::readValue() {
11751178
currentValue().setOffsetLimit(current_ - begin_);
11761179
break;
11771180
} // else, fall through ...
1181+
#ifdef __llvm__
1182+
[[clang::fallthrough]];
1183+
#endif
11781184
default:
11791185
currentValue().setOffsetStart(token.start_ - begin_);
11801186
currentValue().setOffsetLimit(token.end_ - begin_);

0 commit comments

Comments
 (0)