mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-27 06:10:06 +08:00
Fix commit 85f6fad3a6
Don't reset nocode_wanted with saved_nocode_wanted if it hasn't been modified (and hence saved_nocode_wanted is uninitialized).
This commit is contained in:
parent
cf95ac399c
commit
508df168f4
3
tccgen.c
3
tccgen.c
@ -3317,7 +3317,8 @@ static void type_decl(CType *type, AttributeDef *ad, int *v, int td)
|
|||||||
nocode_wanted = 1;
|
nocode_wanted = 1;
|
||||||
}
|
}
|
||||||
post_type(type, ad);
|
post_type(type, ad);
|
||||||
nocode_wanted = saved_nocode_wanted;
|
if (storage & VT_STATIC)
|
||||||
|
nocode_wanted = saved_nocode_wanted;
|
||||||
type->t |= storage;
|
type->t |= storage;
|
||||||
if (tok == TOK_ATTRIBUTE1 || tok == TOK_ATTRIBUTE2)
|
if (tok == TOK_ATTRIBUTE1 || tok == TOK_ATTRIBUTE2)
|
||||||
parse_attribute(ad);
|
parse_attribute(ad);
|
||||||
|
Loading…
Reference in New Issue
Block a user