summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2017-08-21 11:09:59 (GMT)
committerGitHub <noreply@github.com>2017-08-21 11:09:59 (GMT)
commitf432a3234f9f2ee09bd40be03e06bf72865ee375 (patch)
treec3efacc3e10d4bb12216be2eafae64f144ecfb5e /Python/ceval.c
parent0267128aa4dc7c383c341c19833c5d506eae9c93 (diff)
downloadcpython-f432a3234f9f2ee09bd40be03e06bf72865ee375.zip
cpython-f432a3234f9f2ee09bd40be03e06bf72865ee375.tar.gz
cpython-f432a3234f9f2ee09bd40be03e06bf72865ee375.tar.bz2
bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. (#3157)
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 9f732f5..92b1331 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -1807,9 +1807,11 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
switch (oparg) {
case 2:
cause = POP(); /* cause */
+ /* fall through */
case 1:
exc = POP(); /* exc */
- case 0: /* Fallthrough */
+ /* fall through */
+ case 0:
if (do_raise(exc, cause)) {
why = WHY_EXCEPTION;
goto fast_block_end;