[Python-checkins] bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470)
Miss Islington (bot)
webhook-mailer at python.org
Sat Jun 29 19:16:47 EDT 2019
https://github.com/python/cpython/commit/ffa419ad004de96395a655f6b8d1a58b7c73372e
commit: ffa419ad004de96395a655f6b8d1a58b7c73372e
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-06-29T16:16:44-07:00
summary:
bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470)
(cherry picked from commit 95da310078a9364bae9ab3f2ad9c71e34306a70c)
Co-authored-by: Benjamin Peterson <benjamin at python.org>
files:
M setup.py
diff --git a/setup.py b/setup.py
index 5e0cd0243010..88cff6164d71 100644
--- a/setup.py
+++ b/setup.py
@@ -1562,9 +1562,9 @@ class db_found(Exception): pass
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,
More information about the Python-checkins
mailing list