[Python-checkins] bpo-30923: Disable warning that has been part of -Wextra since gcc-7.0. (#3142)

Stefan Krah webhook-mailer at python.org
Fri Aug 18 15:39:35 EDT 2017


https://github.com/python/cpython/commit/d73a960c575207539c3f9765cff26d4fff400b45
commit: d73a960c575207539c3f9765cff26d4fff400b45
branch: master
author: Stefan Krah <skrah at bytereef.org>
committer: GitHub <noreply at github.com>
date: 2017-08-18T21:39:32+02:00
summary:

bpo-30923: Disable warning that has been part of -Wextra since gcc-7.0. (#3142)

files:
M Modules/_decimal/libmpdec/io.c

diff --git a/Modules/_decimal/libmpdec/io.c b/Modules/_decimal/libmpdec/io.c
index 3aadfb04379..f45e558f1a9 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:



More information about the Python-checkins mailing list