summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2017-11-12 19:19:53 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2017-11-27 14:35:29 +0100
commit790c230fcfbc3d9d5cc272479dc6d0d8765fb9d7 (patch)
tree1f881d72ed4aa1898f47e6c6bdd09e83c55421be /.travis.yml
parent45efd0b05b01949301ee1fa6c973d34187b63c2b (diff)
downloadlibxml2-790c230fcfbc3d9d5cc272479dc6d0d8765fb9d7.tar.gz
Run Travis tests with -Werror
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 9562d6e7..3ad04c83 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,12 +10,12 @@ matrix:
# Try to emulate a C89 compiler on a POSIX system by disabling as many
# GNU extensions as possible.
- compiler: gcc
- env: CFLAGS="-O2 -std=c89 -D_POSIX_C_SOURCE=200809L"
+ env: CFLAGS="-O2 -std=c89 -D_XOPEN_SOURCE=700 -Werror -Wno-error=unused-function"
# clang with AddressSanitizer and UndefinedBehaviorSanitizer.
- compiler: clang
dist: trusty
env: CONFIG="--without-python"
- CFLAGS="-O2 -g -fno-omit-frame-pointer -fsanitize=address,undefined -fno-sanitize=float-divide-by-zero -fno-sanitize-recover=all"
+ CFLAGS="-O2 -g -fno-omit-frame-pointer -fsanitize=address,undefined -fno-sanitize=float-divide-by-zero -fno-sanitize-recover=all -Werror -Wno-error=unused-function -Wno-error=cast-align"
UBSAN_OPTIONS=print_stacktrace=1
script: sh autogen.sh $CONFIG && make -j2 V=1 && make check
git: