diff options
-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; |