[master] 7620b76 Always forward declare structs, and this FlexeLint hack goes away.

Poul-Henning Kamp phk at FreeBSD.org
Fri May 5 23:07:06 CEST 2017


commit 7620b76053210b140669eebb9e87fd7178977ed2
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri May 5 21:05:51 2017 +0000

    Always forward declare structs, and this FlexeLint hack goes away.

diff --git a/bin/varnishd/common/heritage.h b/bin/varnishd/common/heritage.h
index 5d6a8af..055b240 100644
--- a/bin/varnishd/common/heritage.h
+++ b/bin/varnishd/common/heritage.h
@@ -31,6 +31,7 @@
 
 struct vsm_sc;
 struct suckaddr;
+struct listen_sock;
 struct transport;
 
 struct listen_arg {
diff --git a/include/vqueue.h b/include/vqueue.h
index f5d39ea..3bbb7a1 100644
--- a/include/vqueue.h
+++ b/include/vqueue.h
@@ -435,7 +435,7 @@ struct {								\
 	struct type *vtqe_next;	/* next element */			\
 	struct type **vtqe_prev;	/* address of previous next element */\
 	TRACEBUF							\
-} /*lint -e(18) */
+}
 
 /*
  * Tail queue functions.



More information about the varnish-commit mailing list