From 41e112360f77c53a962b7b503ecaf9e2e39643e5 Mon Sep 17 00:00:00 2001 From: grischka Date: Sat, 19 Dec 2009 22:10:13 +0100 Subject: fix uninitialized warnings with 'type.ref' --- tccgen.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tccgen.c') diff --git a/tccgen.c b/tccgen.c index 7be1f22..6bc8998 100644 --- a/tccgen.c +++ b/tccgen.c @@ -61,6 +61,7 @@ void vpushll(long long v) CValue cval; CType ctype; ctype.t = VT_LLONG; + ctype.ref = 0; cval.ull = v; vsetc(&ctype, VT_CONST, &cval); } @@ -150,6 +151,7 @@ void vseti(int r, int v) { CType type; type.t = VT_INT; + type.ref = 0; vset(&type, r, v); } @@ -2968,6 +2970,7 @@ static void vpush_tokc(int t) { CType type; type.t = t; + type.ref = 0; vsetc(&type, VT_CONST, &tokc); } -- cgit v1.3.1