From nobody Mon Nov 29 15:43:09 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 E01FA18BC913; Mon, 29 Nov 2021 15:43:12 +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 4J2qPW2j6zz4nYP; Mon, 29 Nov 2021 15:43:11 +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 9212B2540B; Mon, 29 Nov 2021 15:43:09 +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 1ATFh9dI065850; Mon, 29 Nov 2021 15:43:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ATFh9Ae065849; Mon, 29 Nov 2021 15:43:09 GMT (envelope-from git) Date: Mon, 29 Nov 2021 15:43:09 GMT Message-Id: <202111291543.1ATFh9Ae065849@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: 16b238b74004 - main - libc/rpc/getrpcent.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: 16b238b74004f9cde53c6305d760f9e485e9cd91 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638200591; 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=MsgA7aEzcKM71CtqfOC+xc58vl+NKMaqqAwhbYR1fEg=; b=RRMUzrs99lkCrK0hdW80Y4zT7Vb8QMU389ooZ+spQOusWUMPffMmP6IVgshl7WJ5yEyzyf L3PzNONP6cgFs1oN850vXjfOaYknZFFIIooHdfsR08Cd/RY51g5zK8TcRWqs1ufqHhASUF L7L9F6y2mqcyQqjyoZFQ0QP2YcDLfp5CBW2bDaWHq22AvjLgnMYjQ7Jer6Fhi0NjlmPZR7 GuLOcuiGMJ2jfkn6vZJn47x1skcB78Xkg9LkcqL5exOuNV7jjTLVzHKziK6or7yUHSMFS+ oPSdC7jl3QUlRK9OhcCq5NaUgR64uV3kwtViY/qLwLuGpas58hIOEA1LLypXxQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638200592; a=rsa-sha256; cv=none; b=FAsRxeRbYwVRodQMFmqOd7/17nvWG7ibwf5LKagP3ulIrTvocZtPcYuuMhWKDb6Lf2uOVX 6zABtdaJUYLWyWwoo5LMGRZus0GNtTZWuFpUsOH8ZEQI3rx/ZfqXGYGLlpVqBdJvF9UR62 eVlvlWaTDMKY+Ed/TIrJCN5/wK+RU8wTbAAa35oiAvzvc9mS/rJrC9kVfihZ/KSe9fYA/t pw112vFle9pYT/Wsb29HWk8ebJq2mL0FDXzeMxuJIC24vH5g2J6IUddTl7ybzm2D4Kj07U WQWddB4nXPD/sr9JFz38RP7viPmNef+gSvpz/rx+W4RqcrclelX9FjqjiK4rng== 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=16b238b74004f9cde53c6305d760f9e485e9cd91 commit 16b238b74004f9cde53c6305d760f9e485e9cd91 Author: Konstantin Belousov AuthorDate: 2021-11-28 03:53:05 +0000 Commit: Konstantin Belousov CommitDate: 2021-11-29 15:39:50 +0000 libc/rpc/getrpcent.c: Mark write-only variables as unused Sponsored by: The FreeBSD Foundation MFC after: 1 week --- lib/libc/rpc/getrpcent.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libc/rpc/getrpcent.c b/lib/libc/rpc/getrpcent.c index 4f3df270de0c..e4770e4e88c5 100644 --- a/lib/libc/rpc/getrpcent.c +++ b/lib/libc/rpc/getrpcent.c @@ -657,11 +657,11 @@ static int rpc_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 rpcent *rpc; - char *orig_buf; - size_t orig_buf_size; + char *orig_buf __unused; + size_t orig_buf_size __unused; struct rpcent new_rpc; size_t desired_size, size, aliases_size; @@ -744,8 +744,8 @@ static int rpc_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 rpcent *rpc; char *orig_buf; size_t orig_buf_size;