Skip to content

Commit 3e24dd5

Browse files
miss-islingtonbenjaminp
authored andcommitted
bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470)
(cherry picked from commit 95da310) Co-authored-by: Benjamin Peterson <benjamin@python.org>
1 parent a88652e commit 3e24dd5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,9 +1562,9 @@ class db_found(Exception): pass
15621562

15631563
cc = sysconfig.get_config_var('CC').split()[0]
15641564
ret = os.system(
1565-
'"%s" -Werror -Wimplicit-fallthrough -E -xc /dev/null >/dev/null 2>&1' % cc)
1565+
'"%s" -Werror -Wno-unreachable-code -E -xc /dev/null >/dev/null 2>&1' % cc)
15661566
if ret >> 8 == 0:
1567-
extra_compile_args.append('-Wno-implicit-fallthrough')
1567+
extra_compile_args.append('-Wno-unreachable-code')
15681568

15691569
exts.append(Extension('pyexpat',
15701570
define_macros = define_macros,

0 commit comments

Comments
 (0)