diff options
| author | grischka <grischka> | 2009-12-19 22:10:13 +0100 |
|---|---|---|
| committer | grischka <grischka> | 2009-12-19 22:16:22 +0100 |
| commit | 41e112360f77c53a962b7b503ecaf9e2e39643e5 (patch) | |
| tree | cf9115a55be5b6e1a70883d1d3b11e4210437ad4 /tccgen.c | |
| parent | 3020a4765d6d83b8d98a87dd78b822cc8b313652 (diff) | |
| download | tinycc-41e112360f77c53a962b7b503ecaf9e2e39643e5.tar.gz tinycc-41e112360f77c53a962b7b503ecaf9e2e39643e5.tar.bz2 | |
fix uninitialized warnings with 'type.ref'
Diffstat (limited to 'tccgen.c')
| -rw-r--r-- | tccgen.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); } |
