From 0fbe50eb4a0e2ce05062e1bfa208d3cda7a481a4 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Thu, 10 Feb 2022 15:49:57 -0800 Subject: Remove one last use of _Noreturn --- cc.h | 2 +- expr.c | 1 + token.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cc.h b/cc.h index ee540a2..0e3e237 100644 --- a/cc.h +++ b/cc.h @@ -377,7 +377,7 @@ extern const char *tokstr[]; void tokenprint(const struct token *); char *tokencheck(const struct token *, enum tokenkind, const char *); -_Noreturn void error(const struct location *, const char *, ...); +void error(const struct location *, const char *, ...); /* scan */ diff --git a/expr.c b/expr.c index 903aef8..b43bff8 100644 --- a/expr.c +++ b/expr.c @@ -352,6 +352,7 @@ inttype(unsigned long long val, bool decimal, char *end) return t; } error(&tok.loc, "no suitable type for constant '%s'", tok.lit); + return NULL; } static int diff --git a/token.c b/token.c index 6e80ff4..ed42db9 100644 --- a/token.c +++ b/token.c @@ -182,7 +182,7 @@ tokencheck(const struct token *t, enum tokenkind kind, const char *msg) return t->lit; } -_Noreturn void error(const struct location *loc, const char *fmt, ...) +void error(const struct location *loc, const char *fmt, ...) { va_list ap; -- cgit v1.2.3