Commit 72b54330 authored by Stefan Krah's avatar Stefan Krah Committed by GitHub

bpo-30923: Suppress fall-through warnings in libmpdec. (#2698)

parent d3aaa2f1
......@@ -2119,6 +2119,9 @@ class PyBuildExt(build_ext):
else:
raise DistutilsError("_decimal: unsupported architecture")
if 'gcc' in cc: # Suppressing the warnings in the source is too verbose.
extra_compile_args.append('-Wno-implicit-fallthrough')
# Workarounds for toolchain bugs:
if sysconfig.get_config_var('HAVE_IPA_PURE_CONST_BUG'):
# Some versions of gcc miscompile inline asm:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment