summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-06-29 17:36:29 -0700
committerNed Deily <nad@python.org>2019-06-29 20:36:29 -0400
commita1093e4dee9dd05cf3a844349c94fed52c4ebd89 (patch)
tree51a6128e69189c18a6e40d437294b24dc286e68c
parent6632906c08e1d4de0fceba42c47886be41b7ba3d (diff)
downloadcpython-git-a1093e4dee9dd05cf3a844349c94fed52c4ebd89.tar.gz
bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470) (GH-14472)
(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 fb95fb5298..e2c1898253 100644
--- a/setup.py
+++ b/setup.py
@@ -1557,9 +1557,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')
exts.append(Extension('pyexpat',
define_macros = define_macros,