diff options
author | Benjamin Peterson <benjamin@python.org> | 2019-06-29 23:00:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-29 23:00:22 (GMT) |
commit | 95da310078a9364bae9ab3f2ad9c71e34306a70c (patch) | |
tree | 5b3bc4223fe2c4a787deab1801aeb00f80462a3f | |
parent | 3e6583061cc7bc27305f17500dece8e43b9f4eab (diff) | |
download | cpython-95da310078a9364bae9ab3f2ad9c71e34306a70c.zip cpython-95da310078a9364bae9ab3f2ad9c71e34306a70c.tar.gz cpython-95da310078a9364bae9ab3f2ad9c71e34306a70c.tar.bz2 |
bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470)
-rw-r--r-- | setup.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1608,9 +1608,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, |