From dc46672d55e8ef06e1479fc7a8b8513d76f61fef Mon Sep 17 00:00:00 2001 From: Stefan Krah Date: Fri, 18 Aug 2017 21:20:18 +0200 Subject: [PATCH] bpo-30923: Disable warning that has been part of -Wextra since gcc-7.0. --- Modules/_decimal/libmpdec/io.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Modules/_decimal/libmpdec/io.c b/Modules/_decimal/libmpdec/io.c index 3aadfb0437979c..f45e558f1a9573 100644 --- a/Modules/_decimal/libmpdec/io.c +++ b/Modules/_decimal/libmpdec/io.c @@ -45,6 +45,12 @@ PEP-3101 formatting for numeric types. */ +/* Disable warning that is part of -Wextra since gcc 7.0. */ +#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && __GNUC__ >= 7 + #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" +#endif + + /* * Work around the behavior of tolower() and strcasecmp() in certain * locales. For example, in tr_TR.utf8: