gdtoa/gethex.c: In function ‘__gethex_D2A’:
gdtoa/gethex.c:127:10: warning: this statement may fall through
[-Wimplicit-fallthrough=]
esign = 1;
~~~~~~^~~
gdtoa/gethex.c:129:5: note: here
case '+':
^~~~
gdtoa/dtoa.c: In function ‘__dtoa’:
gdtoa/dtoa.c:284:14: warning: this statement may fall through
[-Wimplicit-fallthrough=]
leftright = 0;
~~~~~~~~~~^~~
gdtoa/dtoa.c:286:3: note: here
case 4:
^~~~
gdtoa/dtoa.c:292:14: warning: this statement may fall through
[-Wimplicit-fallthrough=]
leftright = 0;
~~~~~~~~~~^~~
gdtoa/dtoa.c:294:3: note: here
case 5:
^~~~
gdtoa/gdtoa.c: In function ‘__gdtoa’:
gdtoa/gdtoa.c:272:14: warning: this statement may fall through
[-Wimplicit-fallthrough=]
leftright = 0;
~~~~~~~~~~^~~
gdtoa/gdtoa.c:274:3: note: here
case 4:
^~~~
gdtoa/gdtoa.c:280:14: warning: this statement may fall through
[-Wimplicit-fallthrough=]
leftright = 0;
~~~~~~~~~~^~~
gdtoa/gdtoa.c:282:3: note: here
case 5:
^~~~
gdtoa/strtodg.c: In function ‘__strtodg’:
gdtoa/strtodg.c:311:9: warning: this statement may fall through
[-Wimplicit-fallthrough=]
sign = 1;
~~~~~^~~
gdtoa/strtodg.c:313:3: note: here
case '+':
^~~~
gdtoa/strtodg.c:314:7: warning: this statement may fall through
[-Wimplicit-fallthrough=]
if (*++s)
^
gdtoa/strtodg.c:317:3: note: here
case 0:
^~~~
gdtoa/strtodg.c:413:11: warning: this statement may fall through
[-Wimplicit-fallthrough=]
esign = 1;
~~~~~~^~~
gdtoa/strtodg.c:414:4: note: here
case '+':
^~~~
---
mingw-w64-crt/gdtoa/dtoa.c | 4 ++--
mingw-w64-crt/gdtoa/gdtoa.c | 4 ++--
mingw-w64-crt/gdtoa/gethex.c | 2 +-
mingw-w64-crt/gdtoa/strtodg.c | 6 ++++--
4 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/mingw-w64-crt/gdtoa/dtoa.c b/mingw-w64-crt/gdtoa/dtoa.c
index 2906bd99f691..46f4caff161a 100644
--- a/mingw-w64-crt/gdtoa/dtoa.c
+++ b/mingw-w64-crt/gdtoa/dtoa.c
@@ -282,7 +282,7 @@ char *__dtoa (double d0, int mode, int ndigits, int *decpt,
int *sign, char **rv
break;
case 2:
leftright = 0;
- /* no break */
+ /* fallthrough */
case 4:
if (ndigits <= 0)
ndigits = 1;
@@ -290,7 +290,7 @@ char *__dtoa (double d0, int mode, int ndigits, int *decpt,
int *sign, char **rv
break;
case 3:
leftright = 0;
- /* no break */
+ /* fallthrough */
case 5:
i = ndigits + k + 1;
ilim = i;
diff --git a/mingw-w64-crt/gdtoa/gdtoa.c b/mingw-w64-crt/gdtoa/gdtoa.c
index cf9c290fb46a..74c29fe3332f 100644
--- a/mingw-w64-crt/gdtoa/gdtoa.c
+++ b/mingw-w64-crt/gdtoa/gdtoa.c
@@ -270,7 +270,7 @@ char *__gdtoa (FPI *fpi, int be, ULong *bits, int *kindp,
int mode, int ndigits,
break;
case 2:
leftright = 0;
- /* no break */
+ /* fallthrough */
case 4:
if (ndigits <= 0)
ndigits = 1;
@@ -278,7 +278,7 @@ char *__gdtoa (FPI *fpi, int be, ULong *bits, int *kindp,
int mode, int ndigits,
break;
case 3:
leftright = 0;
- /* no break */
+ /* fallthrough */
case 5:
i = ndigits + k + 1;
ilim = i;
diff --git a/mingw-w64-crt/gdtoa/gethex.c b/mingw-w64-crt/gdtoa/gethex.c
index 276175453efc..23a0db127168 100644
--- a/mingw-w64-crt/gdtoa/gethex.c
+++ b/mingw-w64-crt/gdtoa/gethex.c
@@ -125,7 +125,7 @@ int gethex (const char **sp, FPI *fpi, Long *expo, Bigint
**bp, int sign)
switch(*++s) {
case '-':
esign = 1;
- /* no break */
+ /* fallthrough */
case '+':
s++;
}
diff --git a/mingw-w64-crt/gdtoa/strtodg.c b/mingw-w64-crt/gdtoa/strtodg.c
index 42ab9df3a259..6c04abaf088f 100644
--- a/mingw-w64-crt/gdtoa/strtodg.c
+++ b/mingw-w64-crt/gdtoa/strtodg.c
@@ -309,11 +309,11 @@ int __strtodg (const char *s00, char **se, FPI *fpi, Long
*expo, ULong *bits)
for(s = s00;;s++) switch(*s) {
case '-':
sign = 1;
- /* no break */
+ /* fallthrough */
case '+':
if (*++s)
goto break2;
- /* no break */
+ /* fallthrough */
case 0:
sign = 0;
irv = STRTOG_NoNumber;
@@ -411,8 +411,10 @@ int __strtodg (const char *s00, char **se, FPI *fpi, Long
*expo, ULong *bits)
switch(c = *++s) {
case '-':
esign = 1;
+ /* fallthrough */
case '+':
c = *++s;
+ /* fallthrough */
}
if (c >= '0' && c <= '9') {
while(c == '0')
--
2.20.1
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public