Don't reset nocode_wanted with saved_nocode_wanted if it hasn't been modified (and hence saved_nocode_wanted is uninitialized).
Unified · Split
| @@ -3317,7 +3317,8 @@ static void type_decl(CType *type, AttributeDef *ad, int *v, int td) · 3316 unmodified lines | |||
| 3317 | nocode_wanted = 1; | 3317 | nocode_wanted = 1; |
| 3318 | } | 3318 | } |
| 3319 | post_type(type, ad); | 3319 | post_type(type, ad); |
| 3320 | nocode_wanted = saved_nocode_wanted; | 3320 | if (storage & VT_STATIC) |
| 3321 | nocode_wanted = saved_nocode_wanted; | ||
| 3321 | type->t |= storage; | 3322 | type->t |= storage; |
| 3322 | if (tok == TOK_ATTRIBUTE1 || tok == TOK_ATTRIBUTE2) | 3323 | if (tok == TOK_ATTRIBUTE1 || tok == TOK_ATTRIBUTE2) |
| 3323 | parse_attribute(ad); | 3324 | parse_attribute(ad); |