Label error and errorx as __LA_NORETURN

This also prevents clang-tidy from reporting some false bugs.
This commit is contained in:
AZero13 2025-05-19 13:35:19 -04:00 committed by GitHub
parent 17a63c7e35
commit cfc1f3a9da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -111,7 +111,7 @@ static int noeol;
static char *passphrase_buf;
/* fatal error message + errno */
static void
static void __LA_NORETURN
error(const char *fmt, ...)
{
va_list ap;
@ -128,7 +128,7 @@ error(const char *fmt, ...)
}
/* fatal error message, no errno */
static void
static void __LA_NORETURN
errorx(const char *fmt, ...)
{
va_list ap;