[systemd-devel] [PATCH] build-sys: workaround scan-build bug to fix ./autogen.sh s

Thomas H.P. Andersen phomes at gmail.com
Tue Apr 1 11:59:46 PDT 2014


On Tue, Apr 1, 2014 at 3:00 PM, Daniel Buch <boogiewasthere at gmail.com> wrote:
> It seems to be a clang-analyzer problem since it don't behave like
> clang-compiler regarding -std={c99,gnu99}
> ---
>  autogen.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/autogen.sh b/autogen.sh
> index 9b4781c..449a2e6 100755
> --- a/autogen.sh
> +++ b/autogen.sh
> @@ -72,7 +72,7 @@ elif [ "x$1" = "xl" ]; then
>          $topdir/configure CC=clang CFLAGS='-g -O0 -ftrapv -Wno-gnu' --enable-compat-libs --enable-kdbus $args
>          make clean
>  elif [ "x$1" = "xs" ]; then
> -        scan-build $topdir/configure CFLAGS='-g -O0 -ftrapv' --enable-compat-libs --enable-kdbus $args
> +        scan-build $topdir/configure CFLAGS='-std=gnu99 -g -O0 -ftrapv' --enable-compat-libs --enable-kdbus $args
>          scan-build make
>  else
>          echo
> --
> 1.9.1

Applied. This also fixed the same problem with clang 3.4 on rawhide.

Thanks.


More information about the systemd-devel mailing list