diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-06-29 16:16:44 -0700 |
---|---|---|
committer | Ned Deily <nad@python.org> | 2019-07-01 22:27:07 -0400 |
commit | 3e24dd52bba863fce4f3c6a34ca9f813666ed181 (patch) | |
tree | 7e8d39ab102d358f5604c3532a4a43107fb819ad | |
parent | a88652e488edc7664f395ba1a22b5e46539d01d3 (diff) | |
download | cpython-git-3e24dd52bba863fce4f3c6a34ca9f813666ed181.tar.gz |
bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470)
(cherry picked from commit 95da310078a9364bae9ab3f2ad9c71e34306a70c)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
-rw-r--r-- | setup.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1562,9 +1562,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, |