git: 2f44f86575f9 - main - install: Fix a compiler warning when bootstrapping
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 19 Apr 2024 18:48:52 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=2f44f86575f9cba5da28b762c359f7a806400744
commit 2f44f86575f9cba5da28b762c359f7a806400744
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-04-19 18:22:00 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-04-19 18:48:37 +0000
install: Fix a compiler warning when bootstrapping
Fixes: 4336161cc9c6 ("install: Don't skip syncing in the common case.")
Reviewed by: imp, des
Differential Revision: https://reviews.freebsd.org/D44866
---
usr.bin/xinstall/xinstall.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c
index e25ccf5c6eb1..2823a9040b7a 100644
--- a/usr.bin/xinstall/xinstall.c
+++ b/usr.bin/xinstall/xinstall.c
@@ -1250,7 +1250,9 @@ copy(int from_fd, const char *from_name, int to_fd, const char *to_name,
errno = serrno;
err(EX_OSERR, "%s", from_name);
}
+#ifndef BOOTSTRAP_XINSTALL
done:
+#endif
if (safecopy && fsync(to_fd) == -1) {
serrno = errno;
(void)unlink(to_name);