chiark / gitweb /
build-sys: workaround scan-build bug to fix ./autogen.sh s
authorDaniel Buch <boogiewasthere@gmail.com>
Tue, 1 Apr 2014 13:00:31 +0000 (15:00 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Tue, 1 Apr 2014 18:57:14 +0000 (20:57 +0200)
It seems to be a clang-analyzer problem since it don't behave like
clang-compiler regarding -std={c99,gnu99}

autogen.sh

index 9b4781c72f7602c2edd3f078cfa0945be26d1a35..449a2e6d5606d5c11c6a87edd6db33cffdc40124 100755 (executable)
@@ -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