summaryrefslogtreecommitdiff
path: root/runtests.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2018-12-25 10:02:22 -0700
committerCharles Harris <charlesr.harris@gmail.com>2018-12-25 10:02:22 -0700
commit1709249c788323afdeb6ab606dc75d252c4a7814 (patch)
tree9ec294ac624cb718c63dd073ddb5bb9cbd7dcbb1 /runtests.py
parente2694759a21c948aa5be26a7e4ac65b7b8b8a8da (diff)
downloadnumpy-1709249c788323afdeb6ab606dc75d252c4a7814.tar.gz
TST: Update runtests.py to specify C99 for gcc.
Prefix `-std=c99` to the CFLAGS environmental variable. C99 is the standard for NumPy >= 1.17.
Diffstat (limited to 'runtests.py')
-rwxr-xr-xruntests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtests.py b/runtests.py
index 22de520eb..41768a2ea 100755
--- a/runtests.py
+++ b/runtests.py
@@ -343,7 +343,6 @@ def build_project(args):
# add flags used as werrors
warnings_as_errors = ' '.join([
# from tools/travis-test.sh
- '-Werror=declaration-after-statement',
'-Werror=vla',
'-Werror=nonnull',
'-Werror=pointer-arith',
@@ -352,6 +351,8 @@ def build_project(args):
'-Werror=unused-function',
])
env['CFLAGS'] = warnings_as_errors + ' ' + env.get('CFLAGS', '')
+ # NumPy > 1.16 should be C99 compatible.
+ env['CFLAGS'] = '-std=c99' + ' ' + env.get('CFLAGS', '')
if args.debug or args.gcov:
# assume everyone uses gcc/gfortran
env['OPT'] = '-O0 -ggdb'