[6.0] b9ef357fd Flexelinting

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Wed Oct 18 16:40:08 UTC 2023


commit b9ef357fdc51e451d8efcf0f6b2a62d2759c66a6
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Oct 18 15:17:11 2023 +0200

    Flexelinting
    
    we can not make the parameter const because API.

diff --git a/lib/libvmod_h2/vmod_h2.c b/lib/libvmod_h2/vmod_h2.c
index 009aafc6f..cbab4d22e 100644
--- a/lib/libvmod_h2/vmod_h2.c
+++ b/lib/libvmod_h2/vmod_h2.c
@@ -70,6 +70,8 @@ vmod_ ## name(VRT_CTX, struct vmod_##name##_arg *args)	\
 	struct h2_sess *h2 = h2get(ctx);		\
 	type r;						\
 							\
+	(void)args;					\
+							\
 	if (h2 == NULL)					\
 		return (-1);				\
 							\


More information about the varnish-commit mailing list