mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. (#3157)
This commit is contained in:
parent
0267128aa4
commit
f432a3234f
13 changed files with 35 additions and 21 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue