summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-01-16 08:35:54 +0100
committerThomas Haller <thaller@redhat.com>2018-01-16 08:42:28 +0100
commit1e5dd2d886f68e8f598db0fb8ca46b614e1bf28f (patch)
tree30491132bf2e0c2ed4ca57cdc452d238a8adf2e3
parent1acd0ed05185786deb33a329a4d692d8e07652b6 (diff)
downloadlibnl-1e5dd2d886f68e8f598db0fb8ca46b614e1bf28f.tar.gz
travis: enable more warnings during build
-rwxr-xr-x.travis/run.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/.travis/run.sh b/.travis/run.sh
index 941037af..6ce2d667 100755
--- a/.travis/run.sh
+++ b/.travis/run.sh
@@ -2,13 +2,14 @@
set -e
-CFLAGS="-Werror"
+CFLAGS="-Werror -Wall -Wdeclaration-after-statement"
if [ "$CC" = "clang" ]; then
- CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument"
+ CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument -Wno-error=unused-function"
fi
+export CFLAGS
./autogen.sh
./configure
-make CFLAGS="$CFLAGS"
-make CFLAGS="$CFLAGS" check
+make -j 5
+make -j 5 check