aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2017-08-21 13:09:59 +0200
committerGitHub <noreply@github.com>2017-08-21 13:09:59 +0200
commitf432a3234f9f2ee09bd40be03e06bf72865ee375 (patch)
treec3efacc3e10d4bb12216be2eafae64f144ecfb5e /Python/wordcode_helpers.h
parentbpo-9566 & bpo-30747: Silence warnings from pyatomic.h macros (#3140) (diff)
downloadcpython-f432a3234f9f2ee09bd40be03e06bf72865ee375.tar.gz
cpython-f432a3234f9f2ee09bd40be03e06bf72865ee375.tar.bz2
cpython-f432a3234f9f2ee09bd40be03e06bf72865ee375.zip
bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. (#3157)
Diffstat (limited to 'Python/wordcode_helpers.h')
-rw-r--r--Python/wordcode_helpers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/wordcode_helpers.h b/Python/wordcode_helpers.h
index b0e3a917767..cce81c1d24e 100644
--- a/Python/wordcode_helpers.h
+++ b/Python/wordcode_helpers.h
@@ -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;