bpo-30923: Suppress fall-through warnings in libmpdec. (#2698) · python/cpython@72b5433 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 72b5433

author

Stefan Krah

authored

File tree

1 file changed

lines changed

1 file changed

lines changed

Lines changed: 3 additions & 0 deletions

Original file line number Diff line number Diff line change
@@ -2119,6 +2119,9 @@ def _decimal_ext(self):
2119 2119 else:
2120 2120 raise DistutilsError("_decimal: unsupported architecture")
2121 2121
2122 +if 'gcc' in cc: # Suppressing the warnings in the source is too verbose.
2123 +extra_compile_args.append('-Wno-implicit-fallthrough')
2124 +
2122 2125 # Workarounds for toolchain bugs:
2123 2126 if sysconfig.get_config_var('HAVE_IPA_PURE_CONST_BUG'):
2124 2127 # Some versions of gcc miscompile inline asm: