mark fall-through in switch-case to calm linter
This commit is contained in:
parent
93e758a82e
commit
c4642bacf0
@ -73,10 +73,15 @@ static int _simple_utf8_to_utf16(const unsigned char *in, unsigned long inlen,
|
||||
if (in + extra >= in_end) goto ERROR;
|
||||
switch (extra) {
|
||||
case 5: ch += *in++; ch <<= 6;
|
||||
/* FALLTHROUGH */
|
||||
case 4: ch += *in++; ch <<= 6;
|
||||
/* FALLTHROUGH */
|
||||
case 3: ch += *in++; ch <<= 6;
|
||||
/* FALLTHROUGH */
|
||||
case 2: ch += *in++; ch <<= 6;
|
||||
/* FALLTHROUGH */
|
||||
case 1: ch += *in++; ch <<= 6;
|
||||
/* FALLTHROUGH */
|
||||
case 0: ch += *in++;
|
||||
}
|
||||
ch -= offset[extra];
|
||||
|
Loading…
Reference in New Issue
Block a user