summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2016-09-12 17:27:46 (GMT)
committerStefan Krah <skrah@bytereef.org>2016-09-12 17:27:46 (GMT)
commit44abad14a3e069fe78c2d5e0a29285bc08031054 (patch)
tree2501f721e22d5084b0ca76a64a0c89d97cb8a791
parent137f39ac908c4b9022c0d75165c60c33bb781a78 (diff)
downloadcpython-44abad14a3e069fe78c2d5e0a29285bc08031054.zip
cpython-44abad14a3e069fe78c2d5e0a29285bc08031054.tar.gz
cpython-44abad14a3e069fe78c2d5e0a29285bc08031054.tar.bz2
Issue #23545: Adding -Wextra in setup.py is no longer necessary, since it
is now part of the official flags.
-rw-r--r--setup.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/setup.py b/setup.py
index d9acd97..8545735 100644
--- a/setup.py
+++ b/setup.py
@@ -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 (