Skip to content

Commit 72b5433

Browse files
author
Stefan Krah
authored
bpo-30923: Suppress fall-through warnings in libmpdec. (#2698)
1 parent d3aaa2f commit 72b5433

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2119,6 +2119,9 @@ def _decimal_ext(self):
21192119
else:
21202120
raise DistutilsError("_decimal: unsupported architecture")
21212121

2122+
if 'gcc' in cc: # Suppressing the warnings in the source is too verbose.
2123+
extra_compile_args.append('-Wno-implicit-fallthrough')
2124+
21222125
# Workarounds for toolchain bugs:
21232126
if sysconfig.get_config_var('HAVE_IPA_PURE_CONST_BUG'):
21242127
# Some versions of gcc miscompile inline asm:

0 commit comments

Comments
 (0)