Skip to content

Commit

Permalink
fix implicit-fallthrough warning
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed Nov 19, 2024
1 parent 7306504 commit 092c189
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Objects/unicodeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -5030,25 +5030,25 @@ load_unaligned(const unsigned char *p, size_t size)
switch (size) {
case 8:
u.b[7] = p[7];
// fall through
_Py_FALLTHROUGH;
case 7:
u.b[6] = p[6];
// fall through
_Py_FALLTHROUGH;
case 6:
u.b[5] = p[5];
// fall through
_Py_FALLTHROUGH;
case 5:
u.b[4] = p[4];
// fall through
_Py_FALLTHROUGH;
case 4:
u.b[3] = p[3];
// fall through
_Py_FALLTHROUGH;
case 3:
u.b[2] = p[2];
// fall through
_Py_FALLTHROUGH;
case 2:
u.b[1] = p[1];
// fall through
_Py_FALLTHROUGH;
case 1:
u.b[0] = p[0];
break;
Expand Down

0 comments on commit 092c189

Please sign in to comment.