mirror of
https://github.com/libarchive/libarchive.git
synced 2026-01-27 01:44:27 +00:00
Label error and errorx as __LA_NORETURN
This also prevents clang-tidy from reporting some false bugs.
This commit is contained in:
parent
17a63c7e35
commit
cfc1f3a9da
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user