aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;