mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
bpo-30923: Suppress fall-through warnings in libmpdec. (#2698)
This commit is contained in:
parent
d3aaa2f149
commit
72b543308e
1 changed files with 3 additions and 0 deletions
3
setup.py
3
setup.py
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue