diff options
author | Michael Forney <mforney@mforney.org> | 2022-02-10 15:49:57 -0800 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2022-02-10 15:50:18 -0800 |
commit | 0fbe50eb4a0e2ce05062e1bfa208d3cda7a481a4 (patch) | |
tree | a04b74bba1e58f458eeb5046d4158b2e655f158f | |
parent | 5dcd9299333326013be09062029e59c51b097786 (diff) |
Remove one last use of _Noreturn
-rw-r--r-- | cc.h | 2 | ||||
-rw-r--r-- | expr.c | 1 | ||||
-rw-r--r-- | token.c | 2 |
3 files changed, 3 insertions, 2 deletions
@@ -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 */ @@ -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 @@ -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; |