summaryrefslogtreecommitdiffstats
path: root/Modules/_decimal
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2017-08-18 19:39:32 (GMT)
committerGitHub <noreply@github.com>2017-08-18 19:39:32 (GMT)
commitd73a960c575207539c3f9765cff26d4fff400b45 (patch)
tree0e3b2bd9e978ac8884f65ac29206dddd0a686631 /Modules/_decimal
parent02f3b7d5ab2206d256879e5a8a34f560218ed397 (diff)
downloadcpython-d73a960c575207539c3f9765cff26d4fff400b45.zip
cpython-d73a960c575207539c3f9765cff26d4fff400b45.tar.gz
cpython-d73a960c575207539c3f9765cff26d4fff400b45.tar.bz2
bpo-30923: Disable warning that has been part of -Wextra since gcc-7.0. (#3142)
Diffstat (limited to 'Modules/_decimal')
-rw-r--r--Modules/_decimal/libmpdec/io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/_decimal/libmpdec/io.c b/Modules/_decimal/libmpdec/io.c
index 3aadfb0..f45e558 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: