Skip to content

Commit 7e9178c

Browse files
committed
Build with -Werror on Travis CI
1 parent 9bf4ebb commit 7e9178c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@ before_install:
2525
install:
2626
- bash -x .travis-install-pari.sh
2727
- pip install --build=/tmp/pip --verbose -r requirements.txt
28-
- pip install --verbose .
28+
# CFLAGS:
29+
# -O1 to speed up compilation (compared to -O2 or -O3)
30+
# -fno-strict-aliasing because that is the default in Python
31+
# -fno-tree-copyrename works around http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56982
32+
# -Wall -Werror to check for potential bugs
33+
# -Wno-unused to remove false positive errors
34+
# -Wno-strict-prototypes works around https://github.com/cython/cython/pull/2076
35+
- env CFLAGS="-O1 -fno-strict-aliasing -fno-tree-copyrename -Wall -Wno-unused -Wno-strict-prototypes -Werror" pip install --verbose .
2936
# command to run tests
3037
script:
3138
- make check

0 commit comments

Comments
 (0)