Don't reset nocode_wanted with saved_nocode_wanted if it hasn't been
modified (and hence saved_nocode_wanted is uninitialized).
master
Thomas Preud'homme 2012-10-25 20:14:55 +02:00
parent cf95ac399c
commit 508df168f4
1 changed files with 2 additions and 1 deletions

View File

@ -3317,7 +3317,8 @@ static void type_decl(CType *type, AttributeDef *ad, int *v, int td)
nocode_wanted = 1;
}
post_type(type, ad);
nocode_wanted = saved_nocode_wanted;
if (storage & VT_STATIC)
nocode_wanted = saved_nocode_wanted;
type->t |= storage;
if (tok == TOK_ATTRIBUTE1 || tok == TOK_ATTRIBUTE2)
parse_attribute(ad);