Mark err() function as noreturn
This commit is contained in:
parent
eda1580ce9
commit
830df177b5
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue