Skip to content

Commit 95da310

Browse files
authored
bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470)
1 parent 3e65830 commit 95da310

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,9 +1608,9 @@ def detect_expat_elementtree(self):
16081608

16091609
cc = sysconfig.get_config_var('CC').split()[0]
16101610
ret = os.system(
1611-
'"%s" -Werror -Wimplicit-fallthrough -E -xc /dev/null >/dev/null 2>&1' % cc)
1611+
'"%s" -Werror -Wno-unreachable-code -E -xc /dev/null >/dev/null 2>&1' % cc)
16121612
if ret >> 8 == 0:
1613-
extra_compile_args.append('-Wno-implicit-fallthrough')
1613+
extra_compile_args.append('-Wno-unreachable-code')
16141614

16151615
self.add(Extension('pyexpat',
16161616
define_macros=define_macros,

0 commit comments

Comments
 (0)