From nobody Mon Dec 06 00:28:00 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 7FCC218BE7BD; Mon, 6 Dec 2021 00:28:01 +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 4J6kmK0gMJz4XP5; Mon, 6 Dec 2021 00:28:01 +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 E032821E8B; Mon, 6 Dec 2021 00:28:00 +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 1B60S0Ru084714; Mon, 6 Dec 2021 00:28:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B60S0CJ084713; Mon, 6 Dec 2021 00:28:00 GMT (envelope-from git) Date: Mon, 6 Dec 2021 00:28:00 GMT Message-Id: <202112060028.1B60S0CJ084713@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: 5298739f2d9f - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 5298739f2d9fd8b3d1196fcf019bb39ec303e84e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638750481; 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=HIW/TWwAmNXxMU523Bemj8kMh02Mv1M5h0MgMEGcIqo=; b=UPOhKXuPADdysHiIvok6WMtIfiRVvSvt0OWQL+kIB/i5pMEQ/HwIdgnO32QxZsDONTxUSm 1xgrRkXjFmhAM4Dbr63DAfY+Y8tKavZUimsWFOoKCsDUBMVnShRJxoGbLeHr2VB1Xrvl5z uJlwe5T5lTt0UlC6jh4CqHR0StS/tLHl0l0/HEicE7EQBg5uw5GwnbaWYaoqLKxhp9U+/q n7i4tfwZQAWx6/xjD3zVsC8DROlhVdiFMo7bzNw6eBwX7bBrYW2oPFlY9tgvSuqDE5M535 bK29TDH84cFoSpcia4dI3G4tz0d9xv64iVfey6CHqOvucLEgNFPmTk8cR8li6g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638750481; a=rsa-sha256; cv=none; b=uWrW1O/HyjbYBd9RXZm5I5GZ+/MkV75Ybv1dT3tzDgAfApfklQS6K9ay03ad4+nHY0E6+q qc5JFSxCS7vKhcSLdA55Hv/TJe10VLp5e3Npy9X0fOKUoiYzvCk3Oa4bSNDLNrh2lqd3DZ BjFNspwRlZiyJF/7tSwIOJj9XVU8DnwXW7niZLMGHryB3lQbEm1LumsN/gIRt6ylWFnUvA zmTm7xRi3I59WRbxkxTGRjWbj8MsiE2QBObWl10jXx36BH1dkeVADmuwKeiShY/CZ4lyg1 bxHYAZeRSMNpIaorOLt/ym0vhWyMdeOA2wpL90AkHArPN9Y77etaoSFHRTeFfg== 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=5298739f2d9fd8b3d1196fcf019bb39ec303e84e commit 5298739f2d9fd8b3d1196fcf019bb39ec303e84e Author: Konstantin Belousov AuthorDate: 2021-11-28 03:53:05 +0000 Commit: Konstantin Belousov CommitDate: 2021-12-06 00:23:44 +0000 libc/rpc/getrpcent.c: Mark write-only variables as unused (cherry picked from commit 16b238b74004f9cde53c6305d760f9e485e9cd91) --- 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;