From f6d403743c9eb1facdfcc0fdfbec74fb19dbbc21 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sun, 28 Nov 2021 05:48:05 +0200 Subject: [PATCH] libc/net/getprotoent.c: Mark write-only variables as unused Sponsored by: The FreeBSD Foundation MFC after: 1 week --- lib/libc/net/getprotoent.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libc/net/getprotoent.c b/lib/libc/net/getprotoent.c index 73b06925049..b3bb52195df 100644 --- a/lib/libc/net/getprotoent.c +++ b/lib/libc/net/getprotoent.c @@ -144,11 +144,11 @@ int __proto_marshal_func(char *buffer, size_t *buffer_size, void *retval, va_list ap, void *cache_mdata) { - char *name; - int num; + char *name __unused; + int num __unused; struct protoent *proto; - char *orig_buf; - size_t orig_buf_size; + char *orig_buf __unused; + size_t orig_buf_size __unused; struct protoent new_proto; size_t desired_size, size, aliases_size; @@ -231,8 +231,8 @@ int __proto_unmarshal_func(char *buffer, size_t buffer_size, void *retval, va_list ap, void *cache_mdata) { - char *name; - int num; + char *name __unused; + int num __unused; struct protoent *proto; char *orig_buf; size_t orig_buf_size;