[Python-checkins] cpython (3.3): Increase warning level for _decimal.so and libmpdec build when using gcc.
stefan.krah
python-checkins at python.org
Wed Jan 16 14:50:15 CET 2013
http://hg.python.org/cpython/rev/5a729c08872a
changeset: 81542:5a729c08872a
branch: 3.3
parent: 81540:6bfa2cf27b0b
user: Stefan Krah <skrah at bytereef.org>
date: Wed Jan 16 14:45:16 2013 +0100
summary:
Increase warning level for _decimal.so and libmpdec build when using gcc.
files:
setup.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -1995,6 +1995,11 @@
if not sysconfig.get_config_var('WITH_THREAD'):
define_macros.append(('WITHOUT_THREADS', 1))
+ # Increase warning level for gcc:
+ if 'gcc' in cc:
+ extra_compile_args.extend(['-Wextra',
+ '-Wno-missing-field-initializers'])
+
# Uncomment for extra functionality:
#define_macros.append(('EXTRA_FUNCTIONALITY', 1))
ext = Extension (
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list