Skip to content

Commit a1093e4

Browse files
miss-islingtonbenjaminp
authored andcommitted
bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470) (GH-14472)
(cherry picked from commit 95da310) Co-authored-by: Benjamin Peterson <[email protected]>
1 parent 6632906 commit a1093e4

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
@@ -1557,9 +1557,9 @@ class db_found(Exception): pass
15571557

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

15641564
exts.append(Extension('pyexpat',
15651565
define_macros = define_macros,

0 commit comments

Comments
 (0)