From eedc015884ebf0256819a9eaf44d54d2adcc25da Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 29 Jun 2019 15:44:02 -0700 Subject: [PATCH] bpo-37437: Pass -Wno-unreachable-code when compiling expat. --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 86e9816dc7b6e3..e54d31f5333806 100644 --- a/setup.py +++ b/setup.py @@ -1608,9 +1608,9 @@ def detect_expat_elementtree(self): 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,