From c90e6aa42f639cdee713427b7a2847fe9b84a126 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 21 Dec 2008 17:46:51 +0000 Subject: [PATCH] More flexelinting. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3487 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/flint.lnt | 3 ++- varnish-cache/lib/libvcl/vcc_compile.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/varnish-cache/bin/varnishd/flint.lnt b/varnish-cache/bin/varnishd/flint.lnt index bf012142..f27ed57d 100644 --- a/varnish-cache/bin/varnishd/flint.lnt +++ b/varnish-cache/bin/varnishd/flint.lnt @@ -40,7 +40,7 @@ -esym(458, heritage) -esym(458, name_key) ////////////// --passes=1 +-passes=3 +libh mgt_event.h +libh ../../config.h @@ -54,6 +54,7 @@ -emacro(527, WRONG) // unreachable code -emacro(702, WEXITSTATUS) // signed shift right +-efunc(525, VCC_Return_Name) // Negative indent // -header(../../config.h) diff --git a/varnish-cache/lib/libvcl/vcc_compile.c b/varnish-cache/lib/libvcl/vcc_compile.c index a658acb4..a3f3f027 100644 --- a/varnish-cache/lib/libvcl/vcc_compile.c +++ b/varnish-cache/lib/libvcl/vcc_compile.c @@ -668,8 +668,9 @@ VCC_Return_Name(unsigned method) #define VCL_RET_MAC(l, U) case VCL_RET_##U: return(#l); #include "vcl_returns.h" #undef VCL_RET_MAC + default: + return (NULL); } - return (NULL); } /*-------------------------------------------------------------------- -- 2.39.5