diff options
-rwxr-xr-x | runtests.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/runtests.py b/runtests.py index 9c5b2521c..35717b319 100755 --- a/runtests.py +++ b/runtests.py @@ -329,15 +329,16 @@ def build_project(args): env['PATH'] = os.pathsep.join(EXTRA_PATH + env.get('PATH', '').split(os.pathsep)) cvars = distutils.sysconfig.get_config_vars() if 'gcc' in cvars.get('CC', ''): - # add flags used as werrors from tools/travis-test.sh, - # add unused-function as well from sysconfig + # add flags used as werrors warnings_as_errors = ' '.join([ - '-Werror=declaration-after-statement', - '-Werror=vla', - '-Werror=nonnull', - '-Werror=pointer-arith', - '-Wlogical-op', - '-Werror=unused-function', + # from tools/travis-test.sh + '-Werror=declaration-after-statement', + '-Werror=vla', + '-Werror=nonnull', + '-Werror=pointer-arith', + '-Wlogical-op', + # from sysconfig + '-Werror=unused-function', ]) env['CFLAGS'] = warnings_as_errors + ' ' + env.get('CFLAGS', '') if args.debug or args.gcov: |