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:
Thomas Preud'homme 2012-10-25 20:14:55 +02:00
parent cf95ac399c
commit 508df168f4

View File

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