]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
travis: turn off -Werror on precise and osx
authorEvgeny Vereshchagin <evvers@ya.ru>
Thu, 2 Jul 2020 10:51:04 +0000 (10:51 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Thu, 2 Jul 2020 10:51:04 +0000 (10:51 +0000)
I'm not sure anyone is particularly interested in what the compilers
have to say there.

.travis-functions.sh

index d8908670e78511c55850e4ada5b5352294820f02..7c9619e88bc7697471c8b6b7df1b6dec737a2f2e 100755 (executable)
@@ -74,7 +74,9 @@ function check_nonroot
                make_opts="$make_opts --memcheck-asan"
        fi
 
-       conf_opts="$conf_opts --enable-werror"
+       if [ "$TRAVIS_OS_NAME" != "osx" -a "$TRAVIS_DIST" != "precise" ]; then
+               conf_opts="$conf_opts --enable-werror"
+       fi
 
        xconfigure $conf_opts || return
        $MAKE || return
@@ -99,7 +101,9 @@ function check_root
                make_opts="$make_opts --memcheck-asan"
        fi
 
-       conf_opts="$conf_opts --enable-werror"
+       if [ "$TRAVIS_OS_NAME" != "osx" -a "$TRAVIS_DIST" != "precise" ]; then
+               conf_opts="$conf_opts --enable-werror"
+       fi
 
        xconfigure $conf_opts || return
        $MAKE || return