Increase warning level for _decimal.so and libmpdec build when using gcc.

This commit is contained in:
Stefan Krah 2013-01-16 14:45:16 +01:00
parent be0d70751c
commit ce55f089fb
1 changed files with 5 additions and 0 deletions

View File

@ -1995,6 +1995,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 (