diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-06-20 23:39:13 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-06-20 23:43:12 +0200 |
commit | caf2fe526991c8a3f6282c473e64bfd76eda9026 (patch) | |
tree | 34fae1871a1c3739fcc5ef59b2aed8687752e219 /contrib | |
parent | c2ba38ca9b2baca2d857eca70c371f2e27137cb1 (diff) |
jenkins.sh: Use --enable-werror only when iu support is disabled
The flag cannot be enabled in all cases because current osmo-iuh header
contain compilation warnings which are then propagated to this project
when building against them.
Change-Id: I799ae49567c8e9ff7a98d296873ac0b12e926558
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/jenkins.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh index d80422d77..c09c368a1 100755 --- a/contrib/jenkins.sh +++ b/contrib/jenkins.sh @@ -31,10 +31,13 @@ osmo-build-dep.sh libosmo-sccp PARALLEL_MAKE="" osmo-build-dep.sh libsmpp34 osmo-build-dep.sh osmo-mgw +enable_werror="" if [ "x$IU" = "x--enable-iu" ]; then osmo-build-dep.sh libasn1c #osmo-build-dep.sh asn1c aper-prefix # only needed for make regen in osmo-iuh osmo-build-dep.sh osmo-iuh +else + enable_werror="--enable-werror" fi set +x @@ -47,12 +50,12 @@ set -x cd "$base" autoreconf --install --force -./configure --enable-sanitize --enable-smpp $IU --enable-external-tests +./configure --enable-sanitize $enable_werror --enable-smpp $IU --enable-external-tests $MAKE $PARALLEL_MAKE LD_LIBRARY_PATH="$inst/lib" $MAKE check \ || cat-testlogs.sh LD_LIBRARY_PATH="$inst/lib" \ - DISTCHECK_CONFIGURE_FLAGS="--enable-smpp $IU --enable-external-tests" \ + DISTCHECK_CONFIGURE_FLAGS="$enable_werror --enable-smpp $IU --enable-external-tests" \ $MAKE distcheck \ || cat-testlogs.sh |