git: 0c80653b16bf - stable/13 - libc/gen/getpwent.c: plug warnings about write-only variables

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Mon, 06 Dec 2021 00:27:53 UTC
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=0c80653b16bf7826314b7d43ad587b2b892b12fe

commit 0c80653b16bf7826314b7d43ad587b2b892b12fe
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-11-28 02:50:18 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-12-06 00:23:44 +0000

    libc/gen/getpwent.c: plug warnings about write-only variables
    
    (cherry picked from commit 701473ef9468cf0f0482fb2c62344637dbdcce96)
---
 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;