From: Benjamin Peterson Date: Sat, 29 Jun 2019 23:00:22 +0000 (-0700) Subject: bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470) X-Git-Tag: v3.9.0a1~1133 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=95da310078a9364bae9ab3f2ad9c71e34306a70c;p=thirdparty%2FPython%2Fcpython.git bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470) --- diff --git a/setup.py b/setup.py index 86e9816dc7b6..e54d31f53338 100644 --- a/setup.py +++ b/setup.py @@ -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,