summaryrefslogtreecommitdiff
path: root/usr.bin/script/script.c
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2022-02-12 23:03:52 +0000
committerrillig <rillig@NetBSD.org>2022-02-12 23:03:52 +0000
commitca37ec1ef03e5f401f2822d1d632702468a4b90d (patch)
treeb987023a8b1e84578d4a0a525bad915c7ae1d90c /usr.bin/script/script.c
parentf5bdf1251e03cdc404c67cf66a9cf8dcf145a231 (diff)
script: declare dooutput as __dead
This fixes the Clang build, which failed with: usr.bin/script/script.c:255:1: error: function 'dooutput' could be declared with attribute 'noreturn' [-Werror,-Wmissing-noreturn]
Diffstat (limited to 'usr.bin/script/script.c')
-rw-r--r--usr.bin/script/script.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c
index 6240eb77668..f06a01ee1eb 100644
--- a/usr.bin/script/script.c
+++ b/usr.bin/script/script.c
@@ -1,4 +1,4 @@
-/* $NetBSD: script.c,v 1.31 2022/02/11 21:15:25 christos Exp $ */
+/* $NetBSD: script.c,v 1.32 2022/02/12 23:03:52 rillig Exp $ */
/*
* Copyright (c) 1980, 1992, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1992, 1993\
#if 0
static char sccsid[] = "@(#)script.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: script.c,v 1.31 2022/02/11 21:15:25 christos Exp $");
+__RCSID("$NetBSD: script.c,v 1.32 2022/02/12 23:03:52 rillig Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -91,7 +91,7 @@ __dead static void done(int);
__dead static void doshell(const char *);
__dead static void fail(void);
static sig_t xsignal(int, sig_t);
-static void dooutput(void);
+__dead static void dooutput(void);
static void finish(int);
static void scriptflush(int);
static void record(FILE *, char *, size_t, int);