mirror of
https://github.com/python/cpython.git
synced 2025-09-03 23:41:18 +00:00
[3.8] bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14473)
(cherry picked from commit 95da310078
)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
This commit is contained in:
parent
323e743d48
commit
66c42f8bbc
1 changed files with 2 additions and 2 deletions
4
setup.py
4
setup.py
|
@ -1599,9 +1599,9 @@ class PyBuildExt(build_ext):
|
||||||
|
|
||||||
cc = sysconfig.get_config_var('CC').split()[0]
|
cc = sysconfig.get_config_var('CC').split()[0]
|
||||||
ret = os.system(
|
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:
|
if ret >> 8 == 0:
|
||||||
extra_compile_args.append('-Wno-implicit-fallthrough')
|
extra_compile_args.append('-Wno-unreachable-code')
|
||||||
|
|
||||||
self.add(Extension('pyexpat',
|
self.add(Extension('pyexpat',
|
||||||
define_macros=define_macros,
|
define_macros=define_macros,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue