From 744705931dd6522a69a4d41e1bc5af9e87262255 Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 11 Dec 2025 09:31:39 +0100 Subject: make fatal() _Noreturn --- common.h | 2 +- io.c | 2 +- 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; -- cgit v1.2.3