[master] a2330f6af flexelint b78cb58ab820e30696f5591279e9081a5b3e8cf1

Nils Goroll nils.goroll at uplex.de
Wed Nov 18 14:35:08 UTC 2020


commit a2330f6afbfe7fc8a526dad1f53465cd6953c123
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Nov 18 15:02:52 2020 +0100

    flexelint b78cb58ab820e30696f5591279e9081a5b3e8cf1
    
    Yes, we do not actually use the mode name, but we still want to have it
    for debugging and clarity.
    
    Info 754: local struct member 'vsc_sf_mode::name' (line 57, file
        ../../lib/libvarnishapi/vsc.c) not referenced

diff --git a/lib/libvarnishapi/vsc.c b/lib/libvarnishapi/vsc.c
index 445c55b79..05e3c11e2 100644
--- a/lib/libvarnishapi/vsc.c
+++ b/lib/libvarnishapi/vsc.c
@@ -152,6 +152,7 @@ vsc_sf_arg(struct vsc *vsc, const char *glob, const struct vsc_sf_mode *mode)
 	AN(sf);
 	REPLACE(sf->pattern, glob);
 	sf->mode = mode;
+	AN(mode->name);
 	if (mode->append)
 		VTAILQ_INSERT_TAIL(&vsc->sf_list, sf, list);
 	else


More information about the varnish-commit mailing list