Skip to content

Commit caba694

Browse files
committed
Fix [-Wimplicit-fallthrough] warnings in MBString extension
1 parent 16859a6 commit caba694

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

ext/mbstring/libmbfl/filters/mbfilter_sjis_mac.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ mbfl_filt_conv_wchar_sjis_mac(int c, mbfl_convert_filter *filter)
367367
if (s2 <= 0 || s1 == -1) {
368368
break;
369369
}
370+
fallthrough;
370371

371372
case 0:
372373

ext/mbstring/libmbfl/filters/mbfilter_uhc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ static int mbfl_filt_ident_uhc(int c, mbfl_identify_filter *filter)
236236
} else { /* bad */
237237
filter->flag = 1;
238238
}
239-
239+
fallthrough;
240240
case 1:
241241
case 2:
242242
if (c < 0x41 || (c > 0x5a && c < 0x61)

ext/mbstring/mbstring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3361,7 +3361,7 @@ static int _php_mbstr_parse_mail_headers(HashTable *ht, const char *str, size_t
33613361
state = 3;
33623362
break;
33633363
}
3364-
/* break is missing intentionally */
3364+
fallthrough;
33653365

33663366
case 3:
33673367
if (crlf_state == -1) {

0 commit comments

Comments
 (0)