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/dtoa.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/dtoa.c')
-rw-r--r-- | Python/dtoa.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/dtoa.c b/Python/dtoa.c index efcadc3..01ca9b0 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; |