[master] 17ee20f22 Silence FlexeLint
Poul-Henning Kamp
phk at FreeBSD.org
Fri Aug 20 20:32:10 UTC 2021
commit 17ee20f22af5f7b95a3e05cd1a5af7b298d0b5c3
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri Aug 20 20:31:21 2021 +0000
Silence FlexeLint
diff --git a/bin/varnishd/http2/cache_http2_proto.c b/bin/varnishd/http2/cache_http2_proto.c
index 05944f49e..b668523a7 100644
--- a/bin/varnishd/http2/cache_http2_proto.c
+++ b/bin/varnishd/http2/cache_http2_proto.c
@@ -1135,9 +1135,11 @@ h2_rxframe(struct worker *wrk, struct h2_sess *h2)
/* FALLTHROUGH */
default:
/* XXX: HTC_S_OVERFLOW / FRAME_SIZE_ERROR handling */
-#define HTC_STATUS(e, n, d, l) \
- if (hs == HTC_S_ ## e) \
- s = #e;
+#define HTC_STATUS(e, n, d, l) \
+ do { \
+ if (hs == HTC_S_ ## e) \
+ s = #e; \
+ } while (0);
#include "tbl/htc.h"
Lck_Lock(&h2->sess->mtx);
VSLb(h2->vsl, SLT_Debug, "H2: No frame (hs=%s)", s);
More information about the varnish-commit
mailing list