[master] 80a41345a Silence Flexelint

Nils Goroll nils.goroll at uplex.de
Thu Oct 31 13:44:05 UTC 2024


commit 80a41345ae5c166ebba590def6ba48d899074c01
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Thu Oct 31 14:39:28 2024 +0100

    Silence Flexelint

diff --git a/bin/varnishd/cache/cache_main.c b/bin/varnishd/cache/cache_main.c
index 920980b54..f33aea55d 100644
--- a/bin/varnishd/cache/cache_main.c
+++ b/bin/varnishd/cache/cache_main.c
@@ -143,6 +143,7 @@ thr_setname_generic(const char *name)
 		name = buf;
 	}
 
+	//lint --e{438} Last value assigned not used
 	PTOK(pthread_setname_np(pthread_self(), name));
 }
 
diff --git a/flint.lnt b/flint.lnt
index d338254b0..65d641676 100644
--- a/flint.lnt
+++ b/flint.lnt
@@ -181,6 +181,7 @@
 -emacro(731, xxxassert)		// arg to eq/non-eq
 -emacro(527, WRONG)		// unreachable code
 -emacro(774, VALID_OBJ)		// boolean always true
+-emacro(506, VALID_OBJ)		// Constant value Boolean
 
 -emacro(506, v_static_assert)	// Constant value Boolean
 -esym(751, __vassert_*)		// local typedef '___' (___) not referenced


More information about the varnish-commit mailing list