diff options
author | Stefan Krah <skrah@bytereef.org> | 2017-08-21 11:09:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-21 11:09:59 (GMT) |
commit | f432a3234f9f2ee09bd40be03e06bf72865ee375 (patch) | |
tree | c3efacc3e10d4bb12216be2eafae64f144ecfb5e /Python/compile.c | |
parent | 0267128aa4dc7c383c341c19833c5d506eae9c93 (diff) | |
download | cpython-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/compile.c')
-rw-r--r-- | Python/compile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/compile.c b/Python/compile.c index 280ddc3..78e797a 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -4154,6 +4154,7 @@ expr_constant(struct compiler *c, expr_ty e) else if (o == Py_False) return 0; } + /* fall through */ default: return -1; } @@ -4446,13 +4447,13 @@ compiler_visit_expr(struct compiler *c, expr_ty e) switch (e->v.Attribute.ctx) { case AugLoad: ADDOP(c, DUP_TOP); - /* Fall through to load */ + /* Fall through */ case Load: ADDOP_NAME(c, LOAD_ATTR, e->v.Attribute.attr, names); break; case AugStore: ADDOP(c, ROT_TWO); - /* Fall through to save */ + /* Fall through */ case Store: ADDOP_NAME(c, STORE_ATTR, e->v.Attribute.attr, names); break; |