[qfcc] Fix some uninitialized variable warnings

I really wish gcc would catch more issues when not optimizing.
This commit is contained in:
Bill Currie 2020-03-18 01:51:52 +09:00
parent f6f6b2cba3
commit 4c6e1b7fc4

View file

@ -790,7 +790,7 @@ static expr_t *
do_op_integer (int op, expr_t *e, expr_t *e1, expr_t *e2) do_op_integer (int op, expr_t *e, expr_t *e1, expr_t *e2)
{ {
int isval1 = 0, isval2 = 0; int isval1 = 0, isval2 = 0;
int val1, val2; int val1 = 0, val2 = 0;
static int valid[] = { static int valid[] = {
'=', '+', '-', '*', '/', '&', '|', '^', '%', '=', '+', '-', '*', '/', '&', '|', '^', '%',
SHL, SHR, AND, OR, LT, GT, LE, GE, EQ, NE, 0 SHL, SHR, AND, OR, LT, GT, LE, GE, EQ, NE, 0