r1311 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Mon Apr 9 23:08:21 CEST 2007


Author: phk
Date: 2007-04-09 23:08:21 +0200 (Mon, 09 Apr 2007)
New Revision: 1311

Added:
   trunk/varnish-cache/bin/varnishd/vclflint.lnt
   trunk/varnish-cache/bin/varnishd/vclflint.sh
Log:
Add scripts to run flexelint over VCL compiler output


Added: trunk/varnish-cache/bin/varnishd/vclflint.lnt
===================================================================
--- trunk/varnish-cache/bin/varnishd/vclflint.lnt	2007-04-09 21:03:12 UTC (rev 1310)
+++ trunk/varnish-cache/bin/varnishd/vclflint.lnt	2007-04-09 21:08:21 UTC (rev 1311)
@@ -0,0 +1,15 @@
+// Flexelint configuration file for VCL compiler output
+//
+
+-passes=3
+
+-esym(763, sess)	// Redundant declaration for symbol 'sess'
+			// Harmless
+
+-e786			// String concatenation within initializer
+			// Harmless
+
+-e752			// local declarator [...] not referenced
+-e754			// local structure member [...] not referenced
+-e526			// Symbol [...] not defined
+

Added: trunk/varnish-cache/bin/varnishd/vclflint.sh
===================================================================
--- trunk/varnish-cache/bin/varnishd/vclflint.sh	2007-04-09 21:03:12 UTC (rev 1310)
+++ trunk/varnish-cache/bin/varnishd/vclflint.sh	2007-04-09 21:08:21 UTC (rev 1311)
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+# Run flexelint on the VCL output
+
+./varnishd -C -b localhost > /tmp/_.c
+
+flexelint vclflint.lnt /tmp/_.c 




More information about the varnish-commit mailing list