mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-26 03:50:07 +08:00
fix uninitialized warnings with 'type.ref'
This commit is contained in:
parent
3020a4765d
commit
41e112360f
@ -938,6 +938,7 @@ void gen_cvt_ftoi(int t)
|
||||
CType ushort_type;
|
||||
|
||||
ushort_type.t = VT_SHORT | VT_UNSIGNED;
|
||||
ushort_type.ref = 0;
|
||||
|
||||
gv(RC_FLOAT);
|
||||
if (t != VT_INT)
|
||||
|
3
tccgen.c
3
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user