Skip to content

Commit d73a960

Browse files
author
Stefan Krah
authored
bpo-30923: Disable warning that has been part of -Wextra since gcc-7.0. (#3142)
1 parent 02f3b7d commit d73a960

File tree

1 file changed

+6
-0
lines changed
  • Modules/_decimal/libmpdec

1 file changed

+6
-0
lines changed

Modules/_decimal/libmpdec/io.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@
4545
PEP-3101 formatting for numeric types. */
4646

4747

48+
/* Disable warning that is part of -Wextra since gcc 7.0. */
49+
#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && __GNUC__ >= 7
50+
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
51+
#endif
52+
53+
4854
/*
4955
* Work around the behavior of tolower() and strcasecmp() in certain
5056
* locales. For example, in tr_TR.utf8:

0 commit comments

Comments
 (0)