diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2021-11-28 02:50:18 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-12-06 00:23:44 +0000 |
commit | 0c80653b16bf7826314b7d43ad587b2b892b12fe (patch) | |
tree | 5e114b6f837f6f187097450e601b36f00cf006a8 | |
parent | 81baf3493b946ffe43da59fcd6c95458426c6c0b (diff) |
libc/gen/getpwent.c: plug warnings about write-only variables
(cherry picked from commit 701473ef9468cf0f0482fb2c62344637dbdcce96)
-rw-r--r-- | lib/libc/gen/getpwent.c | 12 |
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; |