mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. (#3157)
This commit is contained in:
@@ -28,10 +28,13 @@ write_op_arg(_Py_CODEUNIT *codestr, unsigned char opcode,
|
||||
switch (ilen) {
|
||||
case 4:
|
||||
*codestr++ = PACKOPARG(EXTENDED_ARG, (oparg >> 24) & 0xff);
|
||||
/* fall through */
|
||||
case 3:
|
||||
*codestr++ = PACKOPARG(EXTENDED_ARG, (oparg >> 16) & 0xff);
|
||||
/* fall through */
|
||||
case 2:
|
||||
*codestr++ = PACKOPARG(EXTENDED_ARG, (oparg >> 8) & 0xff);
|
||||
/* fall through */
|
||||
case 1:
|
||||
*codestr++ = PACKOPARG(opcode, oparg & 0xff);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user