Mailing List Archive

[master] 4a9238404 Silence FlexeLint
commit 4a9238404955a8bf6916d4b9982fa6c985a1d007
Author: Poul-Henning Kamp <phk@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");
}
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit