From: Colin Walters Date: Thu, 14 Oct 2021 14:40:39 +0000 (-0400) Subject: ci: Enable -fanalyzer X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2^2~13^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fda41e8d249e479a02f67c7b3e31c98f0bb8d553;p=ostree.git ci: Enable -fanalyzer 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. --- diff --git a/ci/build.sh b/ci/build.sh index 2afcd018..ffdeba01 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -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:-}