summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2019-06-29 16:00:22 -0700
committerBenjamin Peterson <benjamin@python.org>2019-06-29 16:01:54 -0700
commit6101ed458eec917be7d230321994902076f13889 (patch)
tree1c85e26843e107c485fe32db6b0e9b447710e391
parent323e743d4879f1cd861d0b252775797fb7938755 (diff)
downloadcpython-git-backport-95da310-3.8.tar.gz
[3.8] bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470)backport-95da310-3.8
(cherry picked from commit 95da310078a9364bae9ab3f2ad9c71e34306a70c) Co-authored-by: Benjamin Peterson <benjamin@python.org>
-rw-r--r--setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 598f5819f8..edc3434242 100644
--- a/setup.py
+++ b/setup.py
@@ -1599,9 +1599,9 @@ class PyBuildExt(build_ext):
cc = sysconfig.get_config_var('CC').split()[0]
ret = os.system(
- '"%s" -Werror -Wimplicit-fallthrough -E -xc /dev/null >/dev/null 2>&1' % cc)
+ '"%s" -Werror -Wno-unreachable-code -E -xc /dev/null >/dev/null 2>&1' % cc)
if ret >> 8 == 0:
- extra_compile_args.append('-Wno-implicit-fallthrough')
+ extra_compile_args.append('-Wno-unreachable-code')
self.add(Extension('pyexpat',
define_macros=define_macros,