]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Label error and errorx as __LA_NORETURN 2618/head
authorAZero13 <gfunni234@gmail.com>
Mon, 19 May 2025 17:35:19 +0000 (13:35 -0400)
committerGitHub <noreply@github.com>
Mon, 19 May 2025 17:35:19 +0000 (13:35 -0400)
This also prevents clang-tidy from reporting some false bugs.

unzip/bsdunzip.c

index f2bd143569e0c8b764b7212b3c3c9e87fb634e35..621afbeb9d6a56d9407dc0e701afc17765693a3f 100644 (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;