History

fix uninitialized warnings with 'type.ref'

grischka committed 16 years ago

Commit 41e11231 parent 3020a472 files · +4 −0Browse files

Unified · Split

2 files
  1. i386-gen.c +1 −0
  2. tccgen.c +3 −0
i386-gen.c+1−0
@@ -938,6 +938,7 @@ void gen_cvt_ftoi(int t) · 937 unmodified lines
938938 CType ushort_type;
939939
940940 ushort_type.t = VT_SHORT | VT_UNSIGNED;
941+ ushort_type.ref = 0;
941942
942943 gv(RC_FLOAT);
943944 if (t != VT_INT)
tccgen.c+3−0
@@ -61,6 +61,7 @@ void vpushll(long long v) · 60 unmodified lines
6161 CValue cval;
6262 CType ctype;
6363 ctype.t = VT_LLONG;
64+ ctype.ref = 0;
6465 cval.ull = v;
6566 vsetc(&ctype, VT_CONST, &cval);
6667 }
@@ -150,6 +151,7 @@ void vseti(int r, int v) · 83 unmodified lines
150151 {
151152 CType type;
152153 type.t = VT_INT;
154+ type.ref = 0;
153155 vset(&type, r, v);
154156 }
155157
@@ -2968,6 +2970,7 @@ static void vpush_tokc(int t) · 2812 unmodified lines
29682970 {
29692971 CType type;
29702972 type.t = t;
2973+ type.ref = 0;
29712974 vsetc(&type, VT_CONST, &tokc);
29722975 }
29732976

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t