diff options
| author | Stefan Behnel <stefan_ml@behnel.de> | 2012-07-31 12:15:09 +0200 |
|---|---|---|
| committer | Stefan Behnel <stefan_ml@behnel.de> | 2012-07-31 12:15:09 +0200 |
| commit | 11da137ac6f624662a07dc0df771c6ccdf5ab0c3 (patch) | |
| tree | 2b9128c0044cd25bbdf43f10dbce410a6e8c9f08 /setupinfo.py | |
| parent | b979106fd234ee292f9867256321660f77476c98 (diff) | |
| download | python-lxml-11da137ac6f624662a07dc0df771c6ccdf5ab0c3.tar.gz | |
drop '-w' flag from C compiler options
Diffstat (limited to 'setupinfo.py')
| -rw-r--r-- | setupinfo.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/setupinfo.py b/setupinfo.py index f528924f..a7d19329 100644 --- a/setupinfo.py +++ b/setupinfo.py @@ -108,12 +108,9 @@ def ext_modules(static_include_dirs, static_library_dirs, else: runtime_library_dirs = [] - if OPTION_SHOW_WARNINGS: - if CYTHON_INSTALLED: - from Cython.Compiler import Errors - Errors.LEVEL = 0 - else: - _cflags = ['-w'] + _cflags + if CYTHON_INSTALLED and OPTION_SHOW_WARNINGS: + from Cython.Compiler import Errors + Errors.LEVEL = 0 result = [] for module in modules: |
