aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--common.h2
-rw-r--r--io.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/common.h b/common.h
index 26e4b61..2d2eb79 100644
--- a/common.h
+++ b/common.h
@@ -389,7 +389,7 @@ void markfileonce(int id, const char *guard);
void markfileseen(int id);
bool isfileseen(int id);
void closefile(int id);
-void fatal(const struct span *, const char *, ...);
+_Noreturn void fatal(const struct span *, const char *, ...);
void error(const struct span *, const char *, ...);
void warn(const struct span *, const char *, ...);
void note(const struct span *, const char *, ...);
diff --git a/io.c b/io.c
index 348b42e..ab3499b 100644
--- a/io.c
+++ b/io.c
@@ -1042,7 +1042,7 @@ vdiag(const struct span *span, enum diagkind kind, const char *fmt, va_list ap)
note(&(struct span){ span->sl }, "expanded from here");
}
-void
+void _Noreturn
fatal(const struct span *span, const char *fmt, ...)
{
va_list ap;