Skip to content

Commit

Permalink
bpo-37437: Pass -Wno-unreachable-code when compiling expat. (pythonGH…
Browse files Browse the repository at this point in the history
…-14470)

(cherry picked from commit 95da310)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
  • Loading branch information
benjaminp authored and miss-islington committed Jun 29, 2019
1 parent 6632906 commit 0176cc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1557,9 +1557,9 @@ class db_found(Exception): pass

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')

exts.append(Extension('pyexpat',
define_macros = define_macros,
Expand Down

0 comments on commit 0176cc8

Please sign in to comment.