flexelint bba4b145

parent af889452
...@@ -332,11 +332,12 @@ vcc_act_return(struct vcc *tl, struct token *t, struct symbol *sym) ...@@ -332,11 +332,12 @@ vcc_act_return(struct vcc *tl, struct token *t, struct symbol *sym)
hand = VCL_RET_MAX; hand = VCL_RET_MAX;
h = NULL; h = NULL;
mask = 0;
#define VCL_RET_MAC(l, U, B) \ #define VCL_RET_MAC(l, U, B) \
if (vcc_IdIs(tl->t, #l)) { \ if (vcc_IdIs(tl->t, #l)) { \
hand = VCL_RET_ ## U; \ hand = VCL_RET_ ## U; \
h = #U; \ h = #U; \
mask = B; \ mask = (B); \
} }
#include "tbl/vcl_returns.h" #include "tbl/vcl_returns.h"
if (h == NULL) { if (h == NULL) {
...@@ -345,6 +346,7 @@ vcc_act_return(struct vcc *tl, struct token *t, struct symbol *sym) ...@@ -345,6 +346,7 @@ vcc_act_return(struct vcc *tl, struct token *t, struct symbol *sym)
ERRCHK(tl); ERRCHK(tl);
} }
assert(hand < VCL_RET_MAX); assert(hand < VCL_RET_MAX);
AN(mask);
vcc_ProcAction(tl->curproc, hand, mask, tl->t); vcc_ProcAction(tl->curproc, hand, mask, tl->t);
vcc_NextToken(tl); vcc_NextToken(tl);
......
...@@ -59,7 +59,6 @@ ...@@ -59,7 +59,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <limits.h>
#include "vcc_compile.h" #include "vcc_compile.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment