aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/marshal.c
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/marshal.c
parent0267128aa4dc7c383c341c19833c5d506eae9c93 (diff)
downloadcpython-f432a3234f9f2ee09bd40be03e06bf72865ee375.tar.gz
cpython-f432a3234f9f2ee09bd40be03e06bf72865ee375.zip
bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. (#3157)
Diffstat (limited to 'Python/marshal.c')
-rw-r--r--Python/marshal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/marshal.c b/Python/marshal.c
index b2c00a0b6c5..b6337e1450f 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -1112,6 +1112,7 @@ r_object(RFILE *p)
case TYPE_ASCII_INTERNED:
is_interned = 1;
+ /* fall through */
case TYPE_ASCII:
n = r_long(p);
if (PyErr_Occurred())
@@ -1124,6 +1125,7 @@ r_object(RFILE *p)
case TYPE_SHORT_ASCII_INTERNED:
is_interned = 1;
+ /* fall through */
case TYPE_SHORT_ASCII:
n = r_byte(p);
if (n == EOF) {
@@ -1149,6 +1151,7 @@ r_object(RFILE *p)
case TYPE_INTERNED:
is_interned = 1;
+ /* fall through */
case TYPE_UNICODE:
{
const char *buffer;