[master] d8549f89c flexelint silencing

Nils Goroll nils.goroll at uplex.de
Wed Nov 18 15:47:07 UTC 2020


commit d8549f89c531d5b68573d2d5cb96299d7580858e
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Nov 18 16:39:46 2020 +0100

    flexelint silencing
    
    leaving these in the "to be reviewed" section because I am not entirely
    sure.
    
    I think these cases are:
    
    - ses_set_attr / beresp_filter_fixed: flexelint bug? Looks like it does not
      register use via macros
    
    - ObjGetU32/Lck_DestroyClass API
    
    - HTTP_IterHdrPack / SYMTAB_NOERR cases we do not want to make static
      by design

diff --git a/bin/varnishd/flint.lnt b/bin/varnishd/flint.lnt
index f1c65166b..4cb63a3a7 100644
--- a/bin/varnishd/flint.lnt
+++ b/bin/varnishd/flint.lnt
@@ -162,3 +162,18 @@
 -e778   // Constant expression evaluates to 0 in operation '___'
 -e736	// Loss of precision (___) (___ bits to ___ bits)
 -e655	// bitwise compatible enums
+
+// cache_session.c
+-esym(528, ses_set_attr)	// Not referenced
+// cache_vrt_var.c
+-esym(528, beresp_filter_fixed) // Not referenced
+
+-esym(714, Lck_DestroyClass)	// Not referenced
+-esym(759, HTTP_IterHdrPack)	// Could be moved to module
+-esym(759, ObjGetU32)		// Could be moved to module
+-esym(759, Lck_DestroyClass)	// Could be moved to module
+-esym(759, SYMTAB_NOERR)	// Could be moved to module
+-esym(765, HTTP_IterHdrPack)	// Could be made static
+-esym(765, ObjGetU32)		// Could be made static
+-esym(765, Lck_DestroyClass)	// Could be made static
+-esym(765, SYMTAB_NOERR)	// Could be made static


More information about the varnish-commit mailing list