Skip to content

Commit c73877d

Browse files
committed
Fix [-Wimplicit-fallthrough] warnings in MBString extension
1 parent b42011a commit c73877d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ext/mbstring/libmbfl/filters/mbfilter_sjis_mac.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ mbfl_filt_conv_wchar_sjis_mac(int c, mbfl_convert_filter *filter)
373373
break;
374374
}
375375
s1 = s2 = 0;
376+
fallthrough;
376377

377378
case 0:
378379

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)