[master] cdadc4be8 flexelint bba4b145df403f12731a8670cbdd1d38555fad19
Nils Goroll
nils.goroll at uplex.de
Mon Feb 8 18:37:06 UTC 2021
commit cdadc4be849e737c953e2df8339bd120660ef313
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Mon Feb 8 19:28:54 2021 +0100
flexelint bba4b145df403f12731a8670cbdd1d38555fad19
diff --git a/lib/libvcc/vcc_action.c b/lib/libvcc/vcc_action.c
index 4a7ee7de2..160aa9acb 100644
--- a/lib/libvcc/vcc_action.c
+++ b/lib/libvcc/vcc_action.c
@@ -332,11 +332,12 @@ vcc_act_return(struct vcc *tl, struct token *t, struct symbol *sym)
hand = VCL_RET_MAX;
h = NULL;
+ mask = 0;
#define VCL_RET_MAC(l, U, B) \
if (vcc_IdIs(tl->t, #l)) { \
hand = VCL_RET_ ## U; \
h = #U; \
- mask = B; \
+ mask = (B); \
}
#include "tbl/vcl_returns.h"
if (h == NULL) {
@@ -345,6 +346,7 @@ vcc_act_return(struct vcc *tl, struct token *t, struct symbol *sym)
ERRCHK(tl);
}
assert(hand < VCL_RET_MAX);
+ AN(mask);
vcc_ProcAction(tl->curproc, hand, mask, tl->t);
vcc_NextToken(tl);
diff --git a/lib/libvcc/vcc_compile.c b/lib/libvcc/vcc_compile.c
index df20b6e45..cec471f16 100644
--- a/lib/libvcc/vcc_compile.c
+++ b/lib/libvcc/vcc_compile.c
@@ -59,7 +59,6 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <limits.h>
#include "vcc_compile.h"
More information about the varnish-commit
mailing list