summaryrefslogtreecommitdiff
path: root/Python/dtoa.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/dtoa.c
parent0267128aa4dc7c383c341c19833c5d506eae9c93 (diff)
downloadcpython-git-f432a3234f9f2ee09bd40be03e06bf72865ee375.tar.gz
bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. (#3157)
Diffstat (limited to 'Python/dtoa.c')
-rw-r--r--Python/dtoa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/dtoa.c b/Python/dtoa.c
index efcadc31e9..01ca9b0b22 100644
--- a/Python/dtoa.c
+++ b/Python/dtoa.c
@@ -1454,7 +1454,7 @@ _Py_dg_strtod(const char *s00, char **se)
switch (c) {
case '-':
sign = 1;
- /* no break */
+ /* fall through */
case '+':
c = *++s;
}
@@ -1523,7 +1523,7 @@ _Py_dg_strtod(const char *s00, char **se)
switch (c) {
case '-':
esign = 1;
- /* no break */
+ /* fall through */
case '+':
c = *++s;
}
@@ -2441,7 +2441,7 @@ _Py_dg_dtoa(double dd, int mode, int ndigits,
break;
case 2:
leftright = 0;
- /* no break */
+ /* fall through */
case 4:
if (ndigits <= 0)
ndigits = 1;
@@ -2449,7 +2449,7 @@ _Py_dg_dtoa(double dd, int mode, int ndigits,
break;
case 3:
leftright = 0;
- /* no break */
+ /* fall through */
case 5:
i = ndigits + k + 1;
ilim = i;