-----Original Message----- From: Mateusz Mikuła <mati...@gmail.com> Sent: Friday, March 9, 2018 7:41 PM To: mingw-w64-public@lists.sourceforge.net Subject: Re: [Mingw-w64-public] GCC Fallthrough warnings.
There is no patch attached. I hope this works: === diff --git a/mingw-w64-crt/stdio/mingw_pformat.c b/mingw-w64-crt/stdio/mingw_pformat.c index 350c6638..5ad3bb4c 100644 --- a/mingw-w64-crt/stdio/mingw_pformat.c +++ b/mingw-w64-crt/stdio/mingw_pformat.c @@ -2472,6 +2472,7 @@ __pformat (int flags, void *dest, int max, const APICHAR *fmt, va_list argv) * and simply fall through. */ length = PFORMAT_LENGTH_LONG; + /* fall through. */ case 'c': /* @@ -2516,6 +2517,7 @@ __pformat (int flags, void *dest, int max, const APICHAR *fmt, va_list argv) * and simply fall through. */ length = PFORMAT_LENGTH_LONG; + /* fall through. */ case 's': if( (length == PFORMAT_LENGTH_LONG) @@ -2679,6 +2681,7 @@ __pformat (int flags, void *dest, int max, const APICHAR *fmt, va_list argv) * select lower case mode, and simply fall through... */ stream.flags |= PFORMAT_XCASE; + /* fall through. */ case 'E': /* @@ -2724,6 +2727,7 @@ __pformat (int flags, void *dest, int max, const APICHAR *fmt, va_list argv) * simply fall through... */ stream.flags |= PFORMAT_XCASE; + /* fall through. */ case 'F': /* @@ -2767,6 +2771,7 @@ __pformat (int flags, void *dest, int max, const APICHAR *fmt, va_list argv) * mode, and simply fall through... */ stream.flags |= PFORMAT_XCASE; + /* fall through. */ case 'G': /* @@ -2803,6 +2808,7 @@ __pformat (int flags, void *dest, int max, const APICHAR *fmt, va_list argv) __pformat_gfloat( (long double)(va_arg( argv, double )), &stream ); goto format_scan; + /* fall through. */ case 'a': /* @@ -2811,6 +2817,7 @@ __pformat (int flags, void *dest, int max, const APICHAR *fmt, va_list argv) * fall through... */ stream.flags |= PFORMAT_XCASE; + /* fall through. */ case 'A': /* @@ -3168,6 +3175,7 @@ __pformat (int flags, void *dest, int max, const APICHAR *fmt, va_list argv) stream.flags |= PFORMAT_ZEROFILL; break; } + /* fall through. */ default: /* === ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public