aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-07-05 20:00:57 +0200
committerHarald Welte <laforge@gnumonks.org>2017-07-08 10:46:31 +0000
commitf3561318082df83ba5ca7220ae97afed7da95654 (patch)
treebc318d01f9e74fe4c173033fa4251285ff82eb1d
parenteebbec23a5b3717623229b257f86f1f23a6a18cb (diff)
contrib: Enable -Werror by default
-rw-r--r--configure.ac2
-rwxr-xr-xcontrib/jenkins.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 200f55d..7e3e03e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,7 +54,7 @@ CFLAGS="$saved_CFLAGS"
AC_SUBST(SYMBOL_VISIBILITY)
CFLAGS="$CFLAGS -Wall"
-CPPFLAGS="$CFLAGS -Wall"
+CPPFLAGS="$CPPFLAGS -Wall"
AC_OUTPUT(
libosmo-sigtran.pc
diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh
index 668a58b..897c464 100755
--- a/contrib/jenkins.sh
+++ b/contrib/jenkins.sh
@@ -29,7 +29,7 @@ echo
set -x
autoreconf --install --force
-./configure
+./configure CFLAGS="-Werror" CPPFLAGS="-Werror"
$MAKE $PARALLEL_MAKE
$MAKE distcheck \
|| cat-testlogs.sh