[master] 4a9238404 Silence FlexeLint

Poul-Henning Kamp phk at FreeBSD.org
Mon Jul 19 15:55:07 UTC 2021


commit 4a9238404955a8bf6916d4b9982fa6c985a1d007
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Jul 19 15:54:36 2021 +0000

    Silence FlexeLint

diff --git a/vmod/vmod_blob.c b/vmod/vmod_blob.c
index 98a1527cd..fa05d1c48 100644
--- a/vmod/vmod_blob.c
+++ b/vmod/vmod_blob.c
@@ -117,7 +117,10 @@ static char empty[1] = { '\0' };
 static enum encoding
 parse_encoding(VCL_ENUM e)
 {
-#define VMODENUM(n) if (e == VENUM(n)) return (n);
+#define VMODENUM(n)				\
+	do {					\
+		if (e == VENUM(n)) return (n);	\
+	} while (0);
 #include "vmod_blob_tbl_encodings.h"
 	WRONG("illegal encoding enum");
 }


More information about the varnish-commit mailing list