From cfc1f3a9da16d8752e7701f790c3eda8f42f28de Mon Sep 17 00:00:00 2001 From: AZero13 Date: Mon, 19 May 2025 13:35:19 -0400 Subject: [PATCH] Label error and errorx as __LA_NORETURN This also prevents clang-tidy from reporting some false bugs. --- unzip/bsdunzip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unzip/bsdunzip.c b/unzip/bsdunzip.c index f2bd14356..621afbeb9 100644 --- a/unzip/bsdunzip.c +++ b/unzip/bsdunzip.c @@ -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; -- 2.47.2