Skip to content

Commit 36c4abb

Browse files
Liquorhaoren3696
Liquor
authored andcommitted
fix gcc warning implicit-fallthrough
1 parent fa9939c commit 36c4abb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/yajl_parser.c

+2
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ yajl_do_parse(yajl_handle hand, const unsigned char * jsonText,
343343
goto around_again;
344344
}
345345
/* intentional fall-through */
346+
__attribute__((fallthrough));
346347
}
347348
case yajl_tok_colon:
348349
case yajl_tok_comma:
@@ -394,6 +395,7 @@ yajl_do_parse(yajl_handle hand, const unsigned char * jsonText,
394395
bufLen = yajl_buf_len(hand->decodeBuf);
395396
}
396397
/* intentional fall-through */
398+
__attribute__((fallthrough));
397399
case yajl_tok_string:
398400
if (hand->callbacks && hand->callbacks->yajl_map_key) {
399401
_CC_CHK(hand->callbacks->yajl_map_key(hand->ctx, buf,

0 commit comments

Comments
 (0)