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
938 CType ushort_type;938 CType ushort_type;
939 939
940 ushort_type.t = VT_SHORT | VT_UNSIGNED;940 ushort_type.t = VT_SHORT | VT_UNSIGNED;
941 ushort_type.ref = 0;
941 942
942 gv(RC_FLOAT);943 gv(RC_FLOAT);
943 if (t != VT_INT)944 if (t != VT_INT)
tccgen.c+3−0
@@ -61,6 +61,7 @@ void vpushll(long long v) · 60 unmodified lines
61 CValue cval;61 CValue cval;
62 CType ctype;62 CType ctype;
63 ctype.t = VT_LLONG;63 ctype.t = VT_LLONG;
64 ctype.ref = 0;
64 cval.ull = v;65 cval.ull = v;
65 vsetc(&ctype, VT_CONST, &cval);66 vsetc(&ctype, VT_CONST, &cval);
66}67}
@@ -150,6 +151,7 @@ void vseti(int r, int v) · 83 unmodified lines
150{151{
151 CType type;152 CType type;
152 type.t = VT_INT;153 type.t = VT_INT;
154 type.ref = 0;
153 vset(&type, r, v);155 vset(&type, r, v);
154}156}
155 157
@@ -2968,6 +2970,7 @@ static void vpush_tokc(int t) · 2812 unmodified lines
2968{2970{
2969 CType type;2971 CType type;
2970 type.t = t;2972 type.t = t;
2973 type.ref = 0;
2971 vsetc(&type, VT_CONST, &tokc);2974 vsetc(&type, VT_CONST, &tokc);
2972}2975}
2973 2976

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