History

fix _Noreturn keyword

Sergey Sushilin committed 7 years ago

Commit 53a15211 parent 7b8799e1 file · +1 −2Browse files

Unified · Split

tccgen.c+1−2
@@ -4402,9 +4402,8 @@ static int parse_btype(CType *type, AttributeDef *ad) · 4401 unmodified lines
44024402 next();
44034403 break;
44044404 case TOK_NORETURN3:
4405− /* currently, no need to handle it because tcc does not
4406− track unused objects */
44074405 next();
4406+ ad->f.func_noreturn = 1;
44084407 break;
44094408 /* GNUC attribute */
44104409 case TOK_ATTRIBUTE1:

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