Mark err() function as noreturn

This commit is contained in:
Jochen Topf 2026-07-24 14:52:20 +02:00
parent eda1580ce9
commit 830df177b5
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ void msg(const char* format, int color, va_list args) {
} }
// prints a formatted message to stdout, color coded to red // prints a formatted message to stdout, color coded to red
void err(const char* format, ...) { [[noreturn]] void err(const char* format, ...) {
va_list args; va_list args;
va_start(args, format); va_start(args, format);
msg(format, 31, args); msg(format, 31, args);