Module Name: src
Committed By: riastradh
Date: Wed Jun 23 14:22:08 UTC 2021
Modified Files:
src/sbin/restore: dirs.c
Log Message:
restore(8): Mark fail_dirtmp __dead to fix clang build.
To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/sbin/restore/dirs.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/restore/dirs.c
diff -u src/sbin/restore/dirs.c:1.52 src/sbin/restore/dirs.c:1.53
--- src/sbin/restore/dirs.c:1.52 Sat Jun 19 13:56:35 2021
+++ src/sbin/restore/dirs.c Wed Jun 23 14:22:08 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: dirs.c,v 1.52 2021/06/19 13:56:35 christos Exp $ */
+/* $NetBSD: dirs.c,v 1.53 2021/06/23 14:22:08 riastradh Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)dirs.c 8.7 (Berkeley) 5/1/95";
#else
-__RCSID("$NetBSD: dirs.c,v 1.52 2021/06/19 13:56:35 christos Exp $");
+__RCSID("$NetBSD: dirs.c,v 1.53 2021/06/23 14:22:08 riastradh Exp $");
#endif
#endif /* not lint */
@@ -135,7 +135,7 @@ static void putent(struct direct *);
static void rst_seekdir(RST_DIR *, long, long);
static long rst_telldir(RST_DIR *);
static struct direct *searchdir(ino_t, char *);
-static void fail_dirtmp(char *);
+static void fail_dirtmp(char *) __dead;
/*
* Extract directory contents, building up a directory structure
@@ -833,7 +833,7 @@ cleanup(void)
* Print out information about the failure to save directory,
* extended attribute, and mode information.
*/
-static void
+static void __dead
fail_dirtmp(char *filename)
{
warn("%s: cannot write directory database", filename);