git: 1c4f305d21c0 - main - libc/net/getnetnamadr.c: Mark write-only variables as unused
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Nov 2021 15:43:04 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=1c4f305d21c069ebfdab6baada0837f7ecc810ea commit 1c4f305d21c069ebfdab6baada0837f7ecc810ea Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2021-11-28 03:45:52 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2021-11-29 15:39:50 +0000 libc/net/getnetnamadr.c: Mark write-only variables as unused Sponsored by: The FreeBSD Foundation MFC after: 1 week --- lib/libc/net/getnetnamadr.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/libc/net/getnetnamadr.c b/lib/libc/net/getnetnamadr.c index 2d9776685cf9..82ff089c1f1b 100644 --- a/lib/libc/net/getnetnamadr.c +++ b/lib/libc/net/getnetnamadr.c @@ -121,12 +121,12 @@ static int net_marshal_func(char *buffer, size_t *buffer_size, void *retval, va_list ap, void *cache_mdata) { - char *name; - uint32_t net; - int type; + char *name __unused; + uint32_t net __unused; + int type __unused; struct netent *ne; - char *orig_buf; - size_t orig_buf_size; + char *orig_buf __unused; + size_t orig_buf_size __unused; struct netent new_ne; size_t desired_size, size, aliases_size; @@ -210,9 +210,9 @@ static int net_unmarshal_func(char *buffer, size_t buffer_size, void *retval, va_list ap, void *cache_mdata) { - char *name; - uint32_t net; - int type; + char *name __unused; + uint32_t net __unused; + int type __unused; struct netent *ne; char *orig_buf; size_t orig_buf_size;