[master] fb9aea68f move flexelint silencing from global to module

Nils Goroll nils.goroll at uplex.de
Wed Nov 18 16:06:07 UTC 2020


commit fb9aea68fa02bbaa38a40a17870d0553383d5e4f
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Nov 18 17:04:46 2020 +0100

    move flexelint silencing from global to module
    
    we see this issue in two places (for libvcc and varnishd), hope this
    will silence both

diff --git a/bin/varnishd/flint.lnt b/bin/varnishd/flint.lnt
index 488c8dbe4..e2af26b69 100644
--- a/bin/varnishd/flint.lnt
+++ b/bin/varnishd/flint.lnt
@@ -172,9 +172,7 @@
 -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
 -esum(769, obj_attr::OA__MAX)	// Not referenced
diff --git a/lib/libvcc/vcc_symb.c b/lib/libvcc/vcc_symb.c
index e3c07f630..807015c09 100644
--- a/lib/libvcc/vcc_symb.c
+++ b/lib/libvcc/vcc_symb.c
@@ -27,6 +27,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  */
+/*lint -save -esym(759, SYMTAB_NOERR) -esym(765, SYMTAB_NOERR)*/
 
 #include "config.h"
 
@@ -534,3 +535,4 @@ VCC_HandleSymbol(struct vcc *tl, vcc_type_t fmt, const char *pfx)
 		sym->def_b = t;
 	return (sym);
 }
+/*lint -restore */


More information about the varnish-commit mailing list