]> err.no Git - varnish/commitdiff
Flexelint adjustments
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 21 Dec 2008 10:56:11 +0000 (10:56 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 21 Dec 2008 10:56:11 +0000 (10:56 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3481 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/flint.lnt
varnish-cache/bin/varnishd/flint.sh

index a5e83ecdf3b9813738af6f564118a42c083667c4..2971b986a75fef55760be0f54c57de4ba5df5e81 100644 (file)
@@ -69,6 +69,8 @@
 
 -ffc   // No automatic custody
 
+-e455  // thread lock
+-e458  // unprotected read
 -e763  // Redundant declaration for symbol '...' previously declared
 -e726  // Extraneous comma ignored
 -e728  // Symbol ... not explicitly initialized
index 359d308a3bb561e11dc3e7c28bc2155164409071..a0b82dae3d681806d4e5e3c74f91c87e7e632dd3 100755 (executable)
@@ -10,25 +10,4 @@ flexelint \
        flint.lnt \
        *.c \
        ../../lib/libvarnish/*.c \
-       ../../lib/libvcl/*.c \
-       > $T 2>&1
-
-for t in Error Warning Info Note
-do
-       sed -n "/$t [0-9][0-9][0-9]:/s/.*\($t [0-9][0-9][0-9]\).*/\1/p" $T
-done | awk '
-$2 == 830      { next }
-$2 == 831      { next }
-       {
-       i=$2"_"$1
-       h[i]++
-       n++
-       }
-END    {
-       printf "%5d %s\n", n, "Total"
-       for (i in h)
-               printf "%5d %s\n", h[i], i
-       }
-' | sort -rn
-
-cat $T
+       ../../lib/libvcl/*.c