[master] 3690420a7 One more Flexelint silencing

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


commit 3690420a7de6ac9458fb0feb30d6952d2025a0cb
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Jul 19 16:03:22 2021 +0000

    One more Flexelint silencing

diff --git a/vmod/vmod_blob.c b/vmod/vmod_blob.c
index fa05d1c48..393f7fb23 100644
--- a/vmod/vmod_blob.c
+++ b/vmod/vmod_blob.c
@@ -128,7 +128,10 @@ parse_encoding(VCL_ENUM e)
 static enum case_e
 parse_case(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_case.h"
 	WRONG("illegal case enum");
 }


More information about the varnish-commit mailing list