summaryrefslogtreecommitdiff
path: root/runtests.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2018-05-28 22:27:01 -0700
committerGitHub <noreply@github.com>2018-05-28 22:27:01 -0700
commit8598b9e75f5ac1d3ffac2b1f7c2848b0064fc0c8 (patch)
treea287b06bf1124422c3609017c6db7daee60940f6 /runtests.py
parent8439c1cbdc9538b90d6565d44c3ea05579c6096a (diff)
downloadnumpy-8598b9e75f5ac1d3ffac2b1f7c2848b0064fc0c8.tar.gz
STY: Move comments, reduce indentation
Diffstat (limited to 'runtests.py')
-rwxr-xr-xruntests.py17
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: