From ec5b0284448337f892870489086f687b8b090b57 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 9 Apr 2007 21:03:12 +0000 Subject: [PATCH] Fix stylistic Flexelint unhappiness with the compiled C source. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1310 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/lib/libvcl/vcc_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/lib/libvcl/vcc_compile.c b/varnish-cache/lib/libvcl/vcc_compile.c index 23619b38..66504a13 100644 --- a/varnish-cache/lib/libvcl/vcc_compile.c +++ b/varnish-cache/lib/libvcl/vcc_compile.c @@ -302,7 +302,6 @@ LocTable(const struct tokenlist *tl) const char *p; Fh(tl, 0, "#define VGC_NREFS %u\n", tl->cnt + 1); - Fh(tl, 0, "static struct vrt_ref VGC_ref[VGC_NREFS];\n"); Fc(tl, 0, "static struct vrt_ref VGC_ref[VGC_NREFS] = {\n"); lin = 1; pos = 0; @@ -334,6 +333,7 @@ LocTable(const struct tokenlist *tl) Fc(tl, 0, " [%3u] = { %d, %8u, %4u, %3u, 0, \"%.*s\" },\n", t->cnt, sp->idx, t->b - sp->b, lin, pos + 1, PF(t)); } + Fc(tl, 0, " { 0, 0, 0, 0, 0, 0 }\n"); Fc(tl, 0, "};\n"); } -- 2.39.5