stdio/mingw_pformat.c:2510:20: warning: this statement may fall through
[-Wimplicit-fallthrough=]
length = PFORMAT_LENGTH_LONG;
~~~~~~~^~~~~~~~~~~~~~~~~~~~~
stdio/mingw_pformat.c:2512:11: note: here
case 'c':
^~~~
stdio/mingw_pformat.c:2554:20: warning: this statement may fall through
[-Wimplicit-fallthrough=]
length = PFORMAT_LENGTH_LONG;
~~~~~~~^~~~~~~~~~~~~~~~~~~~~
stdio/mingw_pformat.c:2556:11: note: here
case 's':
^~~~
stdio/mingw_pformat.c:2718:26: warning: this statement may fall through
[-Wimplicit-fallthrough=]
stream.flags |= PFORMAT_XCASE;
^
stdio/mingw_pformat.c:2720:11: note: here
case 'E':
^~~~
stdio/mingw_pformat.c:2763:26: warning: this statement may fall through
[-Wimplicit-fallthrough=]
stream.flags |= PFORMAT_XCASE;
^
stdio/mingw_pformat.c:2765:11: note: here
case 'F':
^~~~
stdio/mingw_pformat.c:2806:26: warning: this statement may fall through
[-Wimplicit-fallthrough=]
stream.flags |= PFORMAT_XCASE;
^
stdio/mingw_pformat.c:2808:11: note: here
case 'G':
^~~~
stdio/mingw_pformat.c:2850:26: warning: this statement may fall through
[-Wimplicit-fallthrough=]
stream.flags |= PFORMAT_XCASE;
^
stdio/mingw_pformat.c:2852:11: note: here
case 'A':
^~~~
stdio/mingw_pformat.c:3201:15: warning: this statement may fall through
[-Wimplicit-fallthrough=]
if( state == PFORMAT_INIT )
^
stdio/mingw_pformat.c:3209:11: note: here
default:
^~~~~~~
---
mingw-w64-crt/stdio/mingw_pformat.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/mingw-w64-crt/stdio/mingw_pformat.c
b/mingw-w64-crt/stdio/mingw_pformat.c
index d9f5de7cef17..021c1eb4d08a 100644
--- a/mingw-w64-crt/stdio/mingw_pformat.c
+++ b/mingw-w64-crt/stdio/mingw_pformat.c
@@ -2509,6 +2509,8 @@ __pformat (int flags, void *dest, int max, const APICHAR
*fmt, va_list argv)
*/
length = PFORMAT_LENGTH_LONG;
+ /* fallthrough */
+
case 'c':
/*
* Single, (or single multibyte), character output...
@@ -2553,6 +2555,8 @@ __pformat (int flags, void *dest, int max, const APICHAR
*fmt, va_list argv)
*/
length = PFORMAT_LENGTH_LONG;
+ /* fallthrough */
+
case 's':
if( (length == PFORMAT_LENGTH_LONG)
|| (length == PFORMAT_LENGTH_LLONG))
@@ -2717,6 +2721,8 @@ __pformat (int flags, void *dest, int max, const APICHAR
*fmt, va_list argv)
*/
stream.flags |= PFORMAT_XCASE;
+ /* fallthrough */
+
case 'E':
/*
* Floating point format, with upper case exponent indicator
@@ -2762,6 +2768,8 @@ __pformat (int flags, void *dest, int max, const APICHAR
*fmt, va_list argv)
*/
stream.flags |= PFORMAT_XCASE;
+ /* fallthrough */
+
case 'F':
/*
* Fixed case format using upper case, or lower case on
@@ -2805,6 +2813,8 @@ __pformat (int flags, void *dest, int max, const APICHAR
*fmt, va_list argv)
*/
stream.flags |= PFORMAT_XCASE;
+ /* fallthrough */
+
case 'G':
/*
* Generalised floating point format, with upper case,
@@ -2849,6 +2859,8 @@ __pformat (int flags, void *dest, int max, const APICHAR
*fmt, va_list argv)
*/
stream.flags |= PFORMAT_XCASE;
+ /* fallthrough */
+
case 'A':
/*
* Hexadecimal floating point format; handles radix and
@@ -3206,6 +3218,8 @@ __pformat (int flags, void *dest, int max, const APICHAR
*fmt, va_list argv)
break;
}
+ /* fallthrough */
+
default:
/*
* If we didn't match anything above, then we will check
--
2.20.1
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public