[Python-checkins] cpython: Issue #23545: Adding -Wextra in setup.py is no longer necessary, since it
stefan.krah
python-checkins at python.org
Mon Sep 12 13:28:22 EDT 2016
https://hg.python.org/cpython/rev/da485c6c744e
changeset: 103713:da485c6c744e
user: Stefan Krah <skrah at bytereef.org>
date: Mon Sep 12 19:27:46 2016 +0200
summary:
Issue #23545: Adding -Wextra in setup.py is no longer necessary, since it
is now part of the official flags.
files:
setup.py | 9 ---------
1 files changed, 0 insertions(+), 9 deletions(-)
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -2153,15 +2153,6 @@
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 (
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list