fix _Noreturn keyword
This commit is contained in:
parent
7b8799e5ff
commit
53a1521c2e
1 changed files with 1 additions and 2 deletions
3
tccgen.c
3
tccgen.c
|
@ -4402,9 +4402,8 @@ static int parse_btype(CType *type, AttributeDef *ad)
|
||||||
next();
|
next();
|
||||||
break;
|
break;
|
||||||
case TOK_NORETURN3:
|
case TOK_NORETURN3:
|
||||||
/* currently, no need to handle it because tcc does not
|
|
||||||
track unused objects */
|
|
||||||
next();
|
next();
|
||||||
|
ad->f.func_noreturn = 1;
|
||||||
break;
|
break;
|
||||||
/* GNUC attribute */
|
/* GNUC attribute */
|
||||||
case TOK_ATTRIBUTE1:
|
case TOK_ATTRIBUTE1:
|
||||||
|
|
Loading…
Add table
Reference in a new issue