Skip to content

Commit cfc1f3a

Browse files
authored
Label error and errorx as __LA_NORETURN
This also prevents clang-tidy from reporting some false bugs.
1 parent 17a63c7 commit cfc1f3a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

unzip/bsdunzip.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static int noeol;
111111
static char *passphrase_buf;
112112

113113
/* fatal error message + errno */
114-
static void
114+
static void __LA_NORETURN
115115
error(const char *fmt, ...)
116116
{
117117
va_list ap;
@@ -128,7 +128,7 @@ error(const char *fmt, ...)
128128
}
129129

130130
/* fatal error message, no errno */
131-
static void
131+
static void __LA_NORETURN
132132
errorx(const char *fmt, ...)
133133
{
134134
va_list ap;

0 commit comments

Comments
 (0)