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

Daniel Buch boogiewasthere at gmail.com
Tue Apr 1 06:00:31 PDT 2014


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



More information about the systemd-devel mailing list