summaryrefslogtreecommitdiff
path: root/runtests.py
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2018-05-23 15:10:32 -0700
committermattip <matti.picus@gmail.com>2018-05-28 21:52:12 -0700
commit9903d62613ce99543b14b7423a52da0c309e3a11 (patch)
treeb44b420a5e7e2e080080fc196a33d4fa4d3b8a5e /runtests.py
parent65303252e528a12a5909fb2b3b2dc6daceb067ab (diff)
downloadnumpy-9903d62613ce99543b14b7423a52da0c309e3a11.tar.gz
TST: make build warning into an error in runtest.py
Diffstat (limited to 'runtests.py')
-rwxr-xr-xruntests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtests.py b/runtests.py
index 68192e86e..cb67e9881 100755
--- a/runtests.py
+++ b/runtests.py
@@ -330,9 +330,9 @@ def build_project(args):
cvars = distutils.sysconfig.get_config_vars()
if 'gcc' in cvars['CC']:
# add flags used as werrors tools/travis-test.sh
- warnings_as_errors = (' -Werror=declaration-after-statement -Werror=vla'
+ warnings_as_errors = ('-Werror=declaration-after-statement -Werror=vla'
' -Werror=nonnull -Werror=pointer-arith'
- ' -Wlogical-op')
+ ' -Wlogical-op -Werror=unused-function ')
env['CFLAGS'] = warnings_as_errors + env.get('CFLAGS', '')
if args.debug or args.gcov:
# assume everyone uses gcc/gfortran