Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/script script: declare dooutput as __dead
details: https://anonhg.NetBSD.org/src/rev/abc3415251b3
branches: trunk
changeset: 361164:abc3415251b3
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Feb 12 23:03:52 2022 +0000
description:
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:
usr.bin/script/script.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d81d3e85d840 -r abc3415251b3 usr.bin/script/script.c
--- a/usr.bin/script/script.c Sat Feb 12 20:05:36 2022 +0000
+++ b/usr.bin/script/script.c Sat Feb 12 23:03:52 2022 +0000
@@ -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 @@
#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 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);
Home |
Main Index |
Thread Index |
Old Index