Skip to content

Commit 690b757

Browse files
committed
Fix [-Wimplicit-fallthrough] warnings in MBString extension
1 parent a348caf commit 690b757

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
@@ -3357,7 +3357,7 @@ static int _php_mbstr_parse_mail_headers(HashTable *ht, const char *str, size_t
33573357
state = 3;
33583358
break;
33593359
}
3360-
/* break is missing intentionally */
3360+
fallthrough;
33613361

33623362
case 3:
33633363
if (crlf_state == -1) {

0 commit comments

Comments
 (0)