From: Stefan Krah Date: Thu, 13 Jul 2017 18:54:20 +0000 (+0200) Subject: bpo-30923: Suppress fall-through warnings in libmpdec. (#2698) X-Git-Tag: v3.7.0a1~424 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=72b543308ee3087e3fa247981f5cb4be1138c515;p=thirdparty%2FPython%2Fcpython.git bpo-30923: Suppress fall-through warnings in libmpdec. (#2698) --- diff --git a/setup.py b/setup.py index 41aad8210d82..4f0f522bf8f0 100644 --- a/setup.py +++ b/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: