From f432a3234f9f2ee09bd40be03e06bf72865ee375 Mon Sep 17 00:00:00 2001 From: Stefan Krah Date: Mon, 21 Aug 2017 13:09:59 +0200 Subject: bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. (#3157) --- Python/wordcode_helpers.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Python/wordcode_helpers.h') 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; -- cgit v1.2.3