Skip to content

Commit 6101ed4

Browse files
committed
[3.8] bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470)
(cherry picked from commit 95da310) Co-authored-by: Benjamin Peterson <[email protected]>
1 parent 323e743 commit 6101ed4

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
@@ -1599,9 +1599,9 @@ def detect_expat_elementtree(self):
15991599

16001600
cc = sysconfig.get_config_var('CC').split()[0]
16011601
ret = os.system(
1602-
'"%s" -Werror -Wimplicit-fallthrough -E -xc /dev/null >/dev/null 2>&1' % cc)
1602+
'"%s" -Werror -Wno-unreachable-code -E -xc /dev/null >/dev/null 2>&1' % cc)
16031603
if ret >> 8 == 0:
1604-
extra_compile_args.append('-Wno-implicit-fallthrough')
1604+
extra_compile_args.append('-Wno-unreachable-code')
16051605

16061606
self.add(Extension('pyexpat',
16071607
define_macros=define_macros,

0 commit comments

Comments
 (0)