summaryrefslogtreecommitdiffstats
path: root/Modules
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 /Modules
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 'Modules')
-rw-r--r--Modules/_ctypes/_ctypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c
index 010658e..0bcfc13 100644
--- a/Modules/_ctypes/_ctypes.c
+++ b/Modules/_ctypes/_ctypes.c
@@ -3616,7 +3616,7 @@ _build_callargs(PyCFuncPtrObject *self, PyObject *argtypes,
case (PARAMFLAG_FIN | PARAMFLAG_FOUT):
*pinoutmask |= (1 << i); /* mark as inout arg */
(*pnumretvals)++;
- /* fall through to PARAMFLAG_FIN... */
+ /* fall through */
case 0:
case PARAMFLAG_FIN:
/* 'in' parameter. Copy it from inargs. */