From 53a1521c2e25c4fa53f57fc41344fbbca6fedf9e Mon Sep 17 00:00:00 2001 From: Sergey Sushilin Date: Sun, 8 Sep 2019 18:35:15 +0300 Subject: [PATCH] fix _Noreturn keyword --- tccgen.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tccgen.c b/tccgen.c index 237869c8..1dbe0610 100644 --- a/tccgen.c +++ b/tccgen.c @@ -4402,9 +4402,8 @@ static int parse_btype(CType *type, AttributeDef *ad) next(); break; case TOK_NORETURN3: - /* currently, no need to handle it because tcc does not - track unused objects */ next(); + ad->f.func_noreturn = 1; break; /* GNUC attribute */ case TOK_ATTRIBUTE1: