History

Fix commit 85f6fad3a6acbfa07a3dc45b673965fc26890d8e

Don't reset nocode_wanted with saved_nocode_wanted if it hasn't been modified (and hence saved_nocode_wanted is uninitialized).

Thomas Preud'homme committed 14 years ago

Commit 508df161 parent cf95ac31 file · +2 −1Browse files

Unified · Split

tccgen.c+2−1
@@ -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);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t