From 7cd1750c21c6469962d45cf25588d2356c31dfaa Mon Sep 17 00:00:00 2001 From: Stefan Krah Date: Thu, 13 Jul 2017 20:38:21 +0200 Subject: [PATCH] bpo-30923: Suppress fall-through warnings in libmpdec. --- setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.py b/setup.py index 41aad8210d82672..4f0f522bf8f06be 100644 --- a/setup.py +++ b/setup.py @@ -2119,6 +2119,9 @@ def _decimal_ext(self): 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: