[master] a190e03 Handle <vqueue.h> at top level

Poul-Henning Kamp phk at FreeBSD.org
Thu Dec 12 16:59:12 CET 2013


commit a190e03d104e89ca3b4106aa10f259f5ca173bd8
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Dec 12 15:58:04 2013 +0000

    Handle <vqueue.h> at top level

diff --git a/bin/flint.lnt b/bin/flint.lnt
index 53f3238..1da0545 100644
--- a/bin/flint.lnt
+++ b/bin/flint.lnt
@@ -24,21 +24,6 @@
 -emacro(731, xxxassert)	// arg to eq/non-eq
 -emacro(527, WRONG)     // unreachable code
 
-///////////////////////////////////////////////////////////////////////
-// <vqueue.h>
-
--esym(755, VLIST_*)	// Global macro not ref.
--esym(755, VSLIST_*)
--esym(755, VSTAILQ_*)
--esym(755, VTAILQ_*)
-
--emacro((826), VTAILQ_LAST) // Suspicious pointer-to-pointer conversion (area too small)
--emacro((826), VTAILQ_PREV) // Suspicious pointer-to-pointer conversion (area too small)
--emacro(506, VTAILQ_FOREACH_SAFE) // constant value boolean
--emacro(506, VSTAILQ_FOREACH_SAFE) // constant value boolean
--emacro(740, VTAILQ_LAST) // Unusual pointer cast (incompatible indirect types)
--emacro(740, VTAILQ_PREV) // Unusual pointer cast (incompatible indirect types)
--esym(755, VTAILQ_*)
 
 ///////////////////////////////////////////////////////////////////////
 // miniobj
diff --git a/flint.lnt b/flint.lnt
index 2ccd107..5366617 100644
--- a/flint.lnt
+++ b/flint.lnt
@@ -5,3 +5,23 @@
 -efile(451, "tbl/*.h")				// No include guard
 -esym(785,VSL_tags)				// Sparse array
 
+///////////////////////////////////////////////////////////////////////
+// <vqueue.h>
+
+-esym(755, VLIST_*)	// Global macro not ref.
+-esym(755, VSLIST_*)
+-esym(755, VSTAILQ_*)
+-esym(755, VTAILQ_*)
+
+// 506 = constant value boolean
+-emacro(506, VTAILQ_FOREACH_REVERSE_SAFE)
+-emacro(506, VTAILQ_FOREACH_SAFE)
+-emacro(506, VSTAILQ_FOREACH_SAFE) // constant value boolean
+
+// 826 = Suspicious pointer-to-pointer conversion (area to o small)
+-emacro((826), VTAILQ_LAST)
+-emacro((826), VTAILQ_PREV)
+
+-emacro(740, VTAILQ_LAST) // Unusual pointer cast (incompatible indirect types)
+-emacro(740, VTAILQ_PREV) // Unusual pointer cast (incompatible indirect types)
+
diff --git a/lib/libvarnish/flint.lnt b/lib/libvarnish/flint.lnt
index 5aafc98..f86bb8d 100644
--- a/lib/libvarnish/flint.lnt
+++ b/lib/libvarnish/flint.lnt
@@ -30,12 +30,6 @@
 -e785	// Too few initializers for aggregate 
 -e786	// String concatenation within initializer
 
--emacro(740, VTAILQ_PREV) // Unusual pointer cast (incompatible indirect types)
--emacro(740, VTAILQ_LAST) // Unusual pointer cast (incompatible indirect types)
--emacro((826), VTAILQ_PREV) // Suspicious pointer-to-pointer conversion (area too small)
--emacro((826), VTAILQ_LAST) // Suspicious pointer-to-pointer conversion (area too small)
--emacro(506, VTAILQ_FOREACH_SAFE) // constant value boolean
-
 -esym(534, sprintf)	// Ignoring return value of function
 -esym(534, asprintf)	// Ignoring return value of function
 -esym(534, printf)	// Ignoring return value of function



More information about the varnish-commit mailing list