aboutsummaryrefslogtreecommitdiff
path: root/tools/build/cross-build/include/common/pwd.h
diff options
context:
space:
mode:
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2020-12-14 10:52:15 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2021-01-07 09:30:50 +0000
commit4e64fb9f4901e99ce02f13d45f370e75d53075a6 (patch)
treecebb9f9fb81b897d8d4617247aa099ae708e75eb /tools/build/cross-build/include/common/pwd.h
parented8455806e88deeb7151b9bb23ad5026a36d252d (diff)
downloadsrc-4e64fb9f4901e99ce02f13d45f370e75d53075a6.tar.gz
src-4e64fb9f4901e99ce02f13d45f370e75d53075a6.zip
Fix warnings during bootstrap on Linux systems
Most warnings are currently off for the boostrap phase, but once D27598 lands they will be enabled again.
Diffstat (limited to 'tools/build/cross-build/include/common/pwd.h')
-rw-r--r--tools/build/cross-build/include/common/pwd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/build/cross-build/include/common/pwd.h b/tools/build/cross-build/include/common/pwd.h
index 243da3a1332f..e167fe47701f 100644
--- a/tools/build/cross-build/include/common/pwd.h
+++ b/tools/build/cross-build/include/common/pwd.h
@@ -52,7 +52,7 @@ const char *user_from_uid(uid_t uid, int noname);
#ifdef __linux__
static inline int
-setpassent(int stayopen)
+setpassent(int stayopen __unused)
{
setpwent();
return (1);