git: 024547c9bd6f - main - libc/net/gethostnamadr.c: mark write-only variables as __unused
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Nov 2021 15:43:03 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=024547c9bd6f7e65d383199aab80dae08824ae48 commit 024547c9bd6f7e65d383199aab80dae08824ae48 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2021-11-28 03:22:24 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2021-11-29 15:39:50 +0000 libc/net/gethostnamadr.c: mark write-only variables as __unused Sponsored by: The FreeBSD Foundation MFC after: 1 week --- lib/libc/net/gethostnamadr.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/libc/net/gethostnamadr.c b/lib/libc/net/gethostnamadr.c index 718a64defab9..2da8024c47f4 100644 --- a/lib/libc/net/gethostnamadr.c +++ b/lib/libc/net/gethostnamadr.c @@ -258,10 +258,10 @@ static int host_marshal_func(char *buffer, size_t *buffer_size, void *retval, va_list ap, void *cache_mdata) { - char *str; - void *addr; - socklen_t len; - int type; + char *str __unused; + void *addr __unused; + socklen_t len __unused; + int type __unused; struct hostent *ht; struct hostent new_ht; @@ -364,10 +364,10 @@ static int host_unmarshal_func(char *buffer, size_t buffer_size, void *retval, va_list ap, void *cache_mdata) { - char *str; - void *addr; - socklen_t len; - int type; + char *str __unused; + void *addr __unused; + socklen_t len __unused; + int type __unused; struct hostent *ht; char *p;