Commit 95da3100 authored by Benjamin Peterson's avatar Benjamin Peterson Committed by GitHub

bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470)

parent 3e658306
...@@ -1608,9 +1608,9 @@ class PyBuildExt(build_ext): ...@@ -1608,9 +1608,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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment