From nobody Mon Dec 06 00:27:52 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 553BB18BE3CD; Mon, 6 Dec 2021 00:27:53 +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 4J6km90bnWz4XNT; Mon, 6 Dec 2021 00:27:53 +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 E9003219CA; Mon, 6 Dec 2021 00:27:52 +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 1B60RqE3084535; Mon, 6 Dec 2021 00:27:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B60Rq1H084534; Mon, 6 Dec 2021 00:27:52 GMT (envelope-from git) Date: Mon, 6 Dec 2021 00:27:52 GMT Message-Id: <202112060027.1B60Rq1H084534@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 81baf3493b94 - stable/13 - libc/gen/getgrent.c: plug warnings about write-only variables 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 81baf3493b946ffe43da59fcd6c95458426c6c0b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638750473; 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=gRp0UOnnhXAPAW9Tv3eTGDRCIEuWjQLV1B++WcKrzNc=; b=nVqHmMXhpw5BuP0Tqi6H/B0rs/AnmuUyZWbOazF/oaelmuHWnuG72bjX/ebxNsTuMN7f1v plRxazKLzQPg3bc/TIiZr9RSMa/eOf/+TOYlFkYCKfXw2a+sSt106slpDbH+9S9Ae5wjok KPKSIkNci5vqouN/nBhgAn2vnH0SHrWq8TMgPiLe5OmJv/r+4ml2EAxL8uK1tI4s9tg3n4 2+iPaOwXWJLTbf5Vk0F4j47aj8uBZpR7e2s7JBMIaEb5HHCyZ1ofZWVokqrwdlbPrU6LVo LubYaBX4PDDOvDK0jGhMqtOMN6/eU3Ry9Gm0Pef1zf6oVRCcLXyihHnq6/bQ7g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638750473; a=rsa-sha256; cv=none; b=JqDMEWRCidjziq8+BwguISDpNhQt1cfYSK9BqMNfFS15fGpa5G6u1qW/Tl/ENJBSBXo9gO rqbN3h5lK8R6ghsz0aCsC72WEAL8kMKsTmGe/vf/0NXLHV93aYNeZPa0RV7+lQ9vkun+xB 34mbpC28nnbyKzg1rNSTQgpLD+b5aJCLldUaYPBWCkyyUysO6vgkqtlEdGfN6KQy6gDAsv mmIcuBjXKsx2e6LR2OaIYtI9gubTU30czZKLa782HADLwillZTrqEZbc/Zm1ADzGog2BfS JADjHC96ReJ/lRtj+xsWRTbl9GaVtsP7OuTnSn/zF0kAXIDJvRBXU0O6f/FUXQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=81baf3493b946ffe43da59fcd6c95458426c6c0b commit 81baf3493b946ffe43da59fcd6c95458426c6c0b Author: Konstantin Belousov AuthorDate: 2021-11-28 02:46:56 +0000 Commit: Konstantin Belousov CommitDate: 2021-12-06 00:23:44 +0000 libc/gen/getgrent.c: plug warnings about write-only variables (cherry picked from commit 075fa5a9a8a3a140541ef07142ed5b721264c0e9) --- lib/libc/gen/getgrent.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/libc/gen/getgrent.c b/lib/libc/gen/getgrent.c index 5832cb8c6799..3743518c8f58 100644 --- a/lib/libc/gen/getgrent.c +++ b/lib/libc/gen/getgrent.c @@ -210,12 +210,11 @@ static int grp_marshal_func(char *buffer, size_t *buffer_size, void *retval, va_list ap, void *cache_mdata) { - char *name; - gid_t gid; + char *name __unused; + gid_t gid __unused; struct group *grp; - char *orig_buf; - size_t orig_buf_size; - + char *orig_buf __unused; + size_t orig_buf_size __unused; struct group new_grp; size_t desired_size, size, mem_size; char *p, **mem; @@ -305,8 +304,8 @@ static int grp_unmarshal_func(char *buffer, size_t buffer_size, void *retval, va_list ap, void *cache_mdata) { - char *name; - gid_t gid; + char *name __unused; + gid_t gid __unused; struct group *grp; char *orig_buf; size_t orig_buf_size;