]> granicus.if.org Git - python/commitdiff
bpo-30923: Disable warning that has been part of -Wextra since gcc-7.0. (#3142)
authorStefan Krah <skrah@bytereef.org>
Fri, 18 Aug 2017 19:39:32 +0000 (21:39 +0200)
committerGitHub <noreply@github.com>
Fri, 18 Aug 2017 19:39:32 +0000 (21:39 +0200)
Modules/_decimal/libmpdec/io.c

index 3aadfb0437979ce9fcb45a5362ab957c6c39f665..f45e558f1a9573448a9e4b9d73505cca7bb4d998 100644 (file)
    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: