From nobody Mon Nov 29 15:43:03 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 6E9D918BC61F; Mon, 29 Nov 2021 15:43:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J2qPN54SBz4nHv; Mon, 29 Nov 2021 15:43:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C8C1125487; Mon, 29 Nov 2021 15:43:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1ATFh3cI065723; Mon, 29 Nov 2021 15:43:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ATFh3oF065722; Mon, 29 Nov 2021 15:43:03 GMT (envelope-from git) Date: Mon, 29 Nov 2021 15:43:03 GMT Message-Id: <202111291543.1ATFh3oF065722@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 024547c9bd6f - main - libc/net/gethostnamadr.c: mark write-only variables as __unused List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 024547c9bd6f7e65d383199aab80dae08824ae48 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638200585; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6dCR/7U453AzW0bWtpYyAgTjxYvdq2r53MRueewcRDs=; b=u3ntLMULshwc8Yc2qq3psHjGlXXp+xTkkRfGW9yQhP/d7yMDwTQSMtx4+r38bEYTJq1jqr 0OIZbQAVR3uQfdMxszGVZkz4xJ3NZZNTL+dEwIy0cWQq/W2NPn+cpc4G9Cp4o/fNvBdOAV YA0Qh0XyabWTA5dAgnSccqqWDvXKUtow1sBcxeC9OBQRSjKP7VNuuMZsGtRRsTtsmXZrcR Z1Wbc2RhKgdAXjQ4GDXPY5Hr/Vs4zKw/3vIbtpipfv7b9Pd2S0OYYqOYuW2zwIQYZRynAw tYyiNvWmQ7XYOW8Pbh8YpWU0gHV51Xe8drwvCUPc23saPiboUjWWzF9S7tz3qQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638200585; a=rsa-sha256; cv=none; b=fdVq+Vgw4U/pAAkYHHjoHhNaZuk4cbCGSjduZzOts2ab921CiS4wns5prYR/cveu3rGX8M xhsM4ZZbLHgsloB18p9nhlZ8f3H34Y62C6X/SPxtk45xUv3FcG65z5Nibq2l7/VF35nH3Y ra1kxsLnU5hvDzNOdL6meTkodMwUQwSkKAaP+86CGQdga0VngG/YNCqIkbu342mLqOAfJa GXHis1GQZvSwUBTTy/KoTU2qcBkEjz/2ISY4HQX3h9i/GcllxULpQHK+2YKIau2xl8BBqh s3wutVmoiy4vRM/UYzEpfqD+WC7KmgCInVQ4YuONuW0HE0O5/fkSt8k8/V15Aw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=024547c9bd6f7e65d383199aab80dae08824ae48 commit 024547c9bd6f7e65d383199aab80dae08824ae48 Author: Konstantin Belousov AuthorDate: 2021-11-28 03:22:24 +0000 Commit: Konstantin Belousov 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;