10000 fix implicit-fallthrough warning · python/cpython@092c189 · GitHub
[go: up one dir, main page]

Skip to content

Commit 092c189

Browse files
committed
fix implicit-fallthrough warning
1 parent 7306504 commit 092c189

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Objects/unicodeobject.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5030,25 +5030,25 @@ load_unaligned(const unsigned char *p, size_t size)
50305030
switch (size) {
50315031
case 8:
50325032
u.b[7] = p[7];
5033-
// fall through
5033+
_Py_FALLTHROUGH;
50345034
case 7:
50355035
u.b[6] = p[6];
5036-
// fall through
5036+
_Py_FALLTHROUGH;
50375037
case 6:
50385038
u.b[5] = p[5];
5039-
// fall through
5039+
_Py_FALLTHROUGH;
50405040
case 5:
50415041
u.b[4] = p[4];
5042-
// fall through
5042+
_Py_FALLTHROUGH;
50435043
case 4:
50445044
u.b[3] = p[3];
5045-
// fall through
5045+
_Py_FALLTHROUGH;
50465046
case 3:
50475047
u.b[2] = p[2];
5048-
// fall through
5048+
_Py_FALLTHROUGH;
50495049
case 2:
50505050
u.b[1] = p[1];
5051-
// fall through
5051+
_Py_FALLTHROUGH;
50525052
case 1:
50535053
u.b[0] = p[0];
50545054
break;

0 commit comments

Comments
 (0)
0