[master] c3f84bf Minor flexelintery
Poul-Henning Kamp
phk at FreeBSD.org
Fri Nov 29 12:30:55 CET 2013
commit c3f84bf41d7e50cf714cde595dc03ab50b1e32cc
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri Nov 29 11:30:37 2013 +0000
Minor flexelintery
diff --git a/bin/varnishlog/flint.lnt b/bin/varnishlog/flint.lnt
index c0d43d8..c90f53b 100644
--- a/bin/varnishlog/flint.lnt
+++ b/bin/varnishlog/flint.lnt
@@ -16,5 +16,3 @@
-e788 // enum constant '___' not used within defaulted switch
-e641 // Converting enum '___' to '___'
-
--esym(785,VSL_tags) // Sparse array
diff --git a/bin/varnishlog/varnishlog.c b/bin/varnishlog/varnishlog.c
index 02c476d..d0589d6 100644
--- a/bin/varnishlog/varnishlog.c
+++ b/bin/varnishlog/varnishlog.c
@@ -112,7 +112,7 @@ flushout(void)
int
main(int argc, char * const *argv)
{
- char opt;
+ int opt;
memset(&LOG, 0, sizeof LOG);
VUT_Init(progname);
@@ -130,6 +130,7 @@ main(int argc, char * const *argv)
case 'h':
/* Usage help */
usage(0);
+ break;
case 'w':
/* Write to file */
REPLACE(LOG.w_arg, optarg);
diff --git a/bin/varnishtest/flint.lnt b/bin/varnishtest/flint.lnt
index 8f22c47..79575ee 100644
--- a/bin/varnishtest/flint.lnt
+++ b/bin/varnishtest/flint.lnt
@@ -1,6 +1,5 @@
-esym(850, av)
--esym(785, VSL_tags)
-esym(528, iter_call) // Flexelint bug
-e712 // 14 Info 712 Loss of precision (___) (___ to ___)
diff --git a/bin/varnishtest/flint.sh b/bin/varnishtest/flint.sh
index 3a67bd7..bb3f5c7 100755
--- a/bin/varnishtest/flint.sh
+++ b/bin/varnishtest/flint.sh
@@ -7,6 +7,7 @@ flexelint \
-I../../include \
-I../../lib/libvgz \
-I../.. \
+ ../../flint.lnt \
../flint.lnt \
flint.lnt \
*.c \
diff --git a/flint.lnt b/flint.lnt
index 2dc8c91..2ccd107 100644
--- a/flint.lnt
+++ b/flint.lnt
@@ -3,3 +3,5 @@
*/
-efile(451, "tbl/*.h") // No include guard
+-esym(785,VSL_tags) // Sparse array
+
More information about the varnish-commit
mailing list