[master] 79718684a Explicitly show that we throw away returnvalue (Flexelinting)

Poul-Henning Kamp phk at FreeBSD.org
Tue Mar 7 11:35:08 UTC 2023


commit 79718684aa312e6ad5ae8e2523fa3e9395b06916
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Mar 7 10:49:43 2023 +0000

    Explicitly show that we throw away returnvalue (Flexelinting)

diff --git a/bin/varnishd/cache/cache_vrt_vcl.c b/bin/varnishd/cache/cache_vrt_vcl.c
index 3ab464c07..c98274e9d 100644
--- a/bin/varnishd/cache/cache_vrt_vcl.c
+++ b/bin/varnishd/cache/cache_vrt_vcl.c
@@ -312,7 +312,7 @@ VRT_Assign_Backend(VCL_BACKEND *dst, VCL_BACKEND src)
 		vdir = (*dst)->vdir;
 		CHECK_OBJ_NOTNULL(vdir, VCLDIR_MAGIC);
 		if (!(vdir->flags & VDIR_FLG_NOREFCNT))
-			vcldir_deref(vdir);
+			(void)vcldir_deref(vdir);
 	}
 	if (src != NULL) {
 		vdir = src->vdir;


More information about the varnish-commit mailing list