git: 701473ef9468 - main - libc/gen/getpwent.c: plug warnings about write-only variables
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Nov 2021 15:43:02 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=701473ef9468cf0f0482fb2c62344637dbdcce96 commit 701473ef9468cf0f0482fb2c62344637dbdcce96 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2021-11-28 02:50:18 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2021-11-29 15:39:50 +0000 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 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;