git: 346eaa41f89a - main - libc/net/getservent.c: Mark write-only variables as unused

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Mon, 29 Nov 2021 15:43:07 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=346eaa41f89aaf1545b89f77a88fd1cdd3c37456

commit 346eaa41f89aaf1545b89f77a88fd1cdd3c37456
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-11-28 03:52:33 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-11-29 15:39:50 +0000

    libc/net/getservent.c: Mark write-only variables as unused
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
---
 lib/libc/net/getservent.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/lib/libc/net/getservent.c b/lib/libc/net/getservent.c
index 76db40d96cf5..bcb9f8ff8b84 100644
--- a/lib/libc/net/getservent.c
+++ b/lib/libc/net/getservent.c
@@ -947,12 +947,12 @@ int
 serv_marshal_func(char *buffer, size_t *buffer_size, void *retval, va_list ap,
     void *cache_mdata)
 {
-	char *name;
-	char *proto;
-	int port;
+	char *name __unused;
+	char *proto __unused;
+	int port __unused;
 	struct servent *serv;
-	char *orig_buf;
-	size_t orig_buf_size;
+	char *orig_buf __unused;
+	size_t orig_buf_size __unused;
 
 	struct servent new_serv;
 	size_t desired_size;
@@ -1048,9 +1048,9 @@ int
 serv_unmarshal_func(char *buffer, size_t buffer_size, void *retval, va_list ap,
     void *cache_mdata)
 {
-	char *name;
-	char *proto;
-	int port;
+	char *name __unused;
+	char *proto __unused;
+	int port __unused;
 	struct servent *serv;
 	char *orig_buf;
 	char *p;