[master] e1b0a9303 silence flexelint on a condition which is known to be always false

Nils Goroll nils.goroll at uplex.de
Mon Nov 30 18:31:06 UTC 2020


commit e1b0a93034ff0646c14adbf2ee159a0626570532
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Nov 30 19:29:15 2020 +0100

    silence flexelint on a condition which is known to be always false
    
    ... unless we f*up, which is the sole purpose of its existence

diff --git a/bin/varnishd/cache/cache_vrt_priv.c b/bin/varnishd/cache/cache_vrt_priv.c
index bb4d41ebd..53183489f 100644
--- a/bin/varnishd/cache/cache_vrt_priv.c
+++ b/bin/varnishd/cache/cache_vrt_priv.c
@@ -72,6 +72,7 @@ pan_privs(struct vsb *vsb, const struct vrt_privs *privs)
 		VRBT_FOREACH(vp, vrt_privs, privs) {
 			PAN_CheckMagic(vsb, vp, VRT_PRIV_MAGIC);
 			p = vp->priv;
+			//lint -e{774}
 			if (p == NULL) {
 				// should never happen
 				VSB_printf(vsb, "priv NULL vmod %jx\n",


More information about the varnish-commit mailing list