wscript: enable warnings in release builds

This commit is contained in:
Nedko Arnaudov 2011-01-09 18:55:54 +02:00
parent 91b87783d7
commit 5057e59fa2
1 changed files with 1 additions and 1 deletions

View File

@ -192,8 +192,8 @@ def configure(conf):
conf.check_python_headers()
conf.env['BUILD_WERROR'] = not RELEASE
add_cflag(conf, '-Wall')
if conf.env['BUILD_WERROR']:
add_cflag(conf, '-Wall')
add_cflag(conf, '-Werror')
# for pre gcc-4.4, enable optimizations so use of uninitialized variables gets detected
try: