summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2013-01-16 13:49:15 (GMT)
committerStefan Krah <skrah@bytereef.org>2013-01-16 13:49:15 (GMT)
commitcc0589dbb97111896f981a1546a74726f318d553 (patch)
tree9913c4532d8fc6ac3c5d19f85ff0fbdbe73bceef /setup.py
parent024e286d8faa254e13cca2fd07f8ccb6d2e2212b (diff)
parentce55f089fbb025f5dbf1c9f461f0f9ab580fdd53 (diff)
downloadcpython-cc0589dbb97111896f981a1546a74726f318d553.zip
cpython-cc0589dbb97111896f981a1546a74726f318d553.tar.gz
cpython-cc0589dbb97111896f981a1546a74726f318d553.tar.bz2
Merge 3.3.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 0eca3ec..8624bc9 100644
--- a/setup.py
+++ b/setup.py
@@ -2006,6 +2006,11 @@ 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:
+ extra_compile_args.extend(['-Wextra',
+ '-Wno-missing-field-initializers'])
+
# Uncomment for extra functionality:
#define_macros.append(('EXTRA_FUNCTIONALITY', 1))
ext = Extension (