r163 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Mon May 1 14:28:27 CEST 2006
Author: phk
Date: 2006-05-01 14:28:27 +0200 (Mon, 01 May 2006)
New Revision: 163
Added:
trunk/varnish-cache/bin/varnishd/flint.lnt
trunk/varnish-cache/bin/varnishd/flint.sh
Log:
Add FlexeLint files
Added: trunk/varnish-cache/bin/varnishd/flint.lnt
===================================================================
--- trunk/varnish-cache/bin/varnishd/flint.lnt 2006-05-01 12:27:51 UTC (rev 162)
+++ trunk/varnish-cache/bin/varnishd/flint.lnt 2006-05-01 12:28:27 UTC (rev 163)
@@ -0,0 +1,44 @@
+-passes=3
+
+// Review all below this line
+
+-printf_code( H, void *, unsigned)
+-printf_code( ju, long long unsigned)
+
+-e763 // Redundant declaration for symbol '...' previously declared
+
+
+-e737 // Loss of sign in promotion from int to unsigned int
+-e715 // Symbol 'arg' (line 43) not referenced
+-e818 // Pointer parameter '...' could be declared as pointing to const
+
+-e534 // Ignoring return value of function
+-e767 // macro 'LIST_INIT' was defined differently
+
+-e506 // Constant value boolean
+-e527 // Unreachable code at token 'return'
+-e732 // Loss of sign (arg. no. 2) (int to unsigned int)
+-e774 // Boolean within 'if' always evaluates to False
+-e713 // Loss of precision (assignment) (unsigned long long to long long)
+-e574 // Signed-unsigned mix with relational
+
+-e525 // Negative indentation from line 90
+-e539 // Did not expect positive indentation
+-e725 // Expected positive indentation from line 136
+-e734 // Loss of precision (assignment) (31 bits to 8 bits)
+-e747 // Significant prototype coercion (arg. no. 2) long
+-e712 // Loss of precision (assignment) (long long to
+
+
+-e785 // Too few initializers for aggregate
+
+-e766 // Header file '../../include/libvarnish.h' not used in module
+
+-e773 // Expression-like macro 'VCL_FARGS' not parenthesized
+
+-e788 // enum constant 'HND_Unclass' not used within defaulted switch
+
+-e716 // while(1) ...
+-e641 // Converting enum 'cli_status_e' to int
+
+-e786 // String concatenation within initializer
Added: trunk/varnish-cache/bin/varnishd/flint.sh
===================================================================
--- trunk/varnish-cache/bin/varnishd/flint.sh 2006-05-01 12:27:51 UTC (rev 162)
+++ trunk/varnish-cache/bin/varnishd/flint.sh 2006-05-01 12:28:27 UTC (rev 163)
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+flexelint \
+ -I/usr/include \
+ -I. \
+ -I../../include \
+ -I../../contrib/libevent \
+ flint.lnt \
+ *.c
More information about the varnish-commit
mailing list