Skip to content

Commit 380eb59

Browse files
committed
Fix [-Wimplicit-fallthrough] warnings in MBString extension
1 parent 853be9f commit 380eb59

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
@@ -3351,7 +3351,7 @@ static int _php_mbstr_parse_mail_headers(HashTable *ht, const char *str, size_t
33513351
state = 3;
33523352
break;
33533353
}
3354-
/* break is missing intentionally */
3354+
fallthrough;
33553355

33563356
case 3:
33573357
if (crlf_state == -1) {

0 commit comments

Comments
 (0)