r2898 - trunk/varnish-cache/lib/libvcl
phk at projects.linpro.no
phk at projects.linpro.no
Tue Jul 8 08:30:20 CEST 2008
Author: phk
Date: 2008-07-08 08:30:16 +0200 (Tue, 08 Jul 2008)
New Revision: 2898
Modified:
trunk/varnish-cache/lib/libvcl/flint.lnt
trunk/varnish-cache/lib/libvcl/vcc_compile.h
trunk/varnish-cache/lib/libvcl/vcc_token.c
Log:
Flexelint nits
Modified: trunk/varnish-cache/lib/libvcl/flint.lnt
===================================================================
--- trunk/varnish-cache/lib/libvcl/flint.lnt 2008-07-07 22:19:05 UTC (rev 2897)
+++ trunk/varnish-cache/lib/libvcl/flint.lnt 2008-07-08 06:30:16 UTC (rev 2898)
@@ -12,6 +12,10 @@
-sem(strchr, 1p, type(1), 2n == 0 ? (@p < 1p) : (@p < 1p || @p == 0 ))
-sem(vcc_new_source, custodial(1))
+-emacro((???),va_arg) // the va_arg() macro can yield 415, 416, 661, 662
+ // 796 and 797 (out-of-bounds errors).
+
+
// -ffc // No automatic custody
-esym(534, vsb_printf) // Ignoring return value of function
Modified: trunk/varnish-cache/lib/libvcl/vcc_compile.h
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_compile.h 2008-07-07 22:19:05 UTC (rev 2897)
+++ trunk/varnish-cache/lib/libvcl/vcc_compile.h 2008-07-08 06:30:16 UTC (rev 2898)
@@ -199,7 +199,7 @@
void vcc__Expect(struct tokenlist *tl, unsigned tok, int line);
int vcc_Teq(const struct token *t1, const struct token *t2);
int vcc_IdIs(const struct token *t, const char *p);
-int vcc_isCid(struct token *t);
+int vcc_isCid(const struct token *t);
void vcc_ExpectCid(struct tokenlist *tl);
void vcc_Lexer(struct tokenlist *tl, struct source *sp);
void vcc_NextToken(struct tokenlist *tl);
Modified: trunk/varnish-cache/lib/libvcl/vcc_token.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_token.c 2008-07-07 22:19:05 UTC (rev 2897)
+++ trunk/varnish-cache/lib/libvcl/vcc_token.c 2008-07-08 06:30:16 UTC (rev 2898)
@@ -192,7 +192,7 @@
*/
int
-vcc_isCid(struct token *t)
+vcc_isCid(const struct token *t)
{
const char *q;
More information about the varnish-commit
mailing list