From 701473ef9468cf0f0482fb2c62344637dbdcce96 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sun, 28 Nov 2021 04:50:18 +0200 Subject: [PATCH] libc/gen/getpwent.c: plug warnings about write-only variables Sponsored by: The FreeBSD Foundation MFC after: 1 week --- lib/libc/gen/getpwent.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c index bc1d341fd3a..634fc4fc822 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;