Issue #23545: Adding -Wextra in setup.py is no longer necessary, since it

is now part of the official flags.
This commit is contained in:
Stefan Krah 2016-09-12 19:27:46 +02:00
parent 137f39ac90
commit 44abad14a3
1 changed files with 0 additions and 9 deletions

View File

@ -2153,15 +2153,6 @@ class PyBuildExt(build_ext):
if not sysconfig.get_config_var('WITH_THREAD'):
define_macros.append(('WITHOUT_THREADS', 1))
# Increase warning level for gcc:
if 'gcc' in cc:
cmd = ("echo '' | %s -Wextra -Wno-missing-field-initializers -E - "
"> /dev/null 2>&1" % cc)
ret = os.system(cmd)
if ret >> 8 == 0:
extra_compile_args.extend(['-Wextra',
'-Wno-missing-field-initializers'])
# Uncomment for extra functionality:
#define_macros.append(('EXTRA_FUNCTIONALITY', 1))
ext = Extension (