aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-11-28 02:50:18 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-11-29 15:39:50 +0000
commit701473ef9468cf0f0482fb2c62344637dbdcce96 (patch)
tree5bc14f6725f1507b410e786a12e75f2bb6a19896 /lib
parent075fa5a9a8a3a140541ef07142ed5b721264c0e9 (diff)
downloadsrc-701473ef9468cf0f0482fb2c62344637dbdcce96.tar.gz
src-701473ef9468cf0f0482fb2c62344637dbdcce96.zip
libc/gen/getpwent.c: plug warnings about write-only variables
Sponsored by: The FreeBSD Foundation MFC after: 1 week
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/getpwent.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c
index bc1d341fd3ad..634fc4fc8229 100644
--- a/lib/libc/gen/getpwent.c
+++ b/lib/libc/gen/getpwent.c
@@ -257,11 +257,11 @@ static int
pwd_marshal_func(char *buffer, size_t *buffer_size, void *retval, va_list ap,
void *cache_mdata)
{
- char *name;
- uid_t uid;
+ char *name __unused;
+ uid_t uid __unused;
struct passwd *pwd;
- char *orig_buf;
- size_t orig_buf_size;
+ char *orig_buf __unused;
+ size_t orig_buf_size __unused;
struct passwd new_pwd;
size_t desired_size, size;
@@ -361,8 +361,8 @@ static int
pwd_unmarshal_func(char *buffer, size_t buffer_size, void *retval, va_list ap,
void *cache_mdata)
{
- char *name;
- uid_t uid;
+ char *name __unused;
+ uid_t uid __unused;
struct passwd *pwd;
char *orig_buf;
size_t orig_buf_size;