[master] e7f6d8f Quieten FlexeLint a bit

Poul-Henning Kamp phk at varnish-cache.org
Sat Jun 29 14:53:02 CEST 2013


commit e7f6d8fbe6df6922a477b5e7823a20bdec2d09d1
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Sat Jun 29 12:52:43 2013 +0000

    Quieten FlexeLint a bit

diff --git a/bin/varnishtest/flint.lnt b/bin/varnishtest/flint.lnt
index 9ff3c68..3b39af7 100644
--- a/bin/varnishtest/flint.lnt
+++ b/bin/varnishtest/flint.lnt
@@ -26,4 +26,5 @@
 -e574	// Signed-unsigned mix with relational
 -e835	//  A zero has been given as ___ argument to operator '___'  (<<)
 -e786	// String concatenation within initializer
+-e788	// enum value not used in defaulted switch
 
diff --git a/include/vtree.h b/include/vtree.h
index da9d579..3d72da9 100644
--- a/include/vtree.h
+++ b/include/vtree.h
@@ -381,6 +381,7 @@ struct {								\
 #define	VRB_PROTOTYPE_STATIC(name, type, field, cmp)			\
 	VRB_PROTOTYPE_INTERNAL(name, type, field, cmp, __unused static)
 #define VRB_PROTOTYPE_INTERNAL(name, type, field, cmp, attr)		\
+/*lint -esym(528, name##_VRB_*) */					\
 attr void name##_VRB_INSERT_COLOR(struct name *, struct type *);	\
 attr void name##_VRB_REMOVE_COLOR(struct name *, struct type *, struct type *);\
 attr struct type *name##_VRB_REMOVE(struct name *, struct type *);	\



More information about the varnish-commit mailing list