ci: Enable -fanalyzer
authorColin Walters <walters@verbum.org>
Thu, 14 Oct 2021 14:40:39 +0000 (10:40 -0400)
committerColin Walters <walters@verbum.org>
Fri, 15 Oct 2021 19:44:04 +0000 (15:44 -0400)
Followup to https://github.com/ostreedev/ostree/pull/2463

One thing I noticed here is we lost usage of `build-check.sh`
which also invokes `clang`, which doesn't speak `-fanalyzer`
and would be broken by this if we try to enable `build-check.sh`
again.  But that can come later.

ci/build.sh

index 2afcd0188c8905a70eccf7be274644338c5b282d..ffdeba010112e9fec58c403531817549b98b0c7f 100755 (executable)
@@ -30,6 +30,6 @@ esac
 
 # always fail on warnings; https://github.com/ostreedev/ostree/pull/971
 # NB: this disables the default set of flags from configure.ac
-export CFLAGS="-Wall -Werror ${CFLAGS:-}"
+export CFLAGS="-Wall -Werror -fanalyzer ${CFLAGS:-}"
 
 build --enable-gtk-doc ${CONFIGOPTS:-}