aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2022-02-10 15:49:57 -0800
committerMichael Forney <mforney@mforney.org>2022-02-10 15:50:18 -0800
commit0fbe50eb4a0e2ce05062e1bfa208d3cda7a481a4 (patch)
treea04b74bba1e58f458eeb5046d4158b2e655f158f
parent5dcd9299333326013be09062029e59c51b097786 (diff)
Remove one last use of _Noreturn
-rw-r--r--cc.h2
-rw-r--r--expr.c1
-rw-r--r--token.c2
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;