projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3aaa2f
)
bpo-30923: Suppress fall-through warnings in libmpdec. (#2698)
author
Stefan Krah
<skrah@bytereef.org>
Thu, 13 Jul 2017 18:54:20 +0000
(20:54 +0200)
committer
GitHub
<noreply@github.com>
Thu, 13 Jul 2017 18:54:20 +0000
(20:54 +0200)
setup.py
patch
|
blob
|
history
diff --git
a/setup.py
b/setup.py
index 41aad8210d82672acc9a477fd62e86a4d0dc0fed..4f0f522bf8f06be7058796c187b9f48743995b9b 100644
(file)
--- 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: