From nobody Mon Nov 29 15:43:05 2021 X-Original-To: dev-commits-src-main@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 7067018BC657; Mon, 29 Nov 2021 15:43:10 +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 4J2qPR2t49z4nN9; Mon, 29 Nov 2021 15:43:07 +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 1213A250B4; Mon, 29 Nov 2021 15:43:06 +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 1ATFh6XJ065773; Mon, 29 Nov 2021 15:43:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ATFh57e065772; Mon, 29 Nov 2021 15:43:05 GMT (envelope-from git) Date: Mon, 29 Nov 2021 15:43:05 GMT Message-Id: <202111291543.1ATFh57e065772@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: f6d403743c9e - main - libc/net/getprotoent.c: Mark write-only variables as unused List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: f6d403743c9eb1facdfcc0fdfbec74fb19dbbc21 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638200588; 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=GQhzWTODkcFPmAwyqWdXCtBG0o7je9cHP9Z8esbAqhc=; b=IVQ2mAspCvHEsxGlAYRyD1toZ7DO5N79gNEpm9qQFM3Y1mJCTqve/l5dXk4J90YLzguwL9 PfB1UM8Wf4GZQM6J0IvcL6Gk3Iz1oYOaREhRkpny9QFL83begb6+M69tJXIoXiCvCHeJw6 NOwVXW/b4C4z15hNwjU//3PyJae1t5ajlcdk59OWcZsJwxpdDQO+ne860Mc59yeX9CBtYO fDyZ4Kfyepp3JmgBqnnlDK7dJQJ3gR+XaoNIXvqA8OZvmsHc2f4qlwJTWLezBOyOj95iyJ 9BmjE+Vj8dQc3vDHYHqFf5UhZqsb5C7U7d700JooMbm0lhgC2DK9Tz7NgRIDOw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638200588; a=rsa-sha256; cv=none; b=X29rwLB0y2MFJrVTDEZu6GkOyHj5Cd7+EUtTTfB27Clb5CCdYC7uNM+56ZaPiFPbOtEJAM dmBotmGoSwKDwtvoBuYvlTA2lfvX9kAodYrIytqduPxGJcYiNDs42N6qMdalcFmhWSYeD4 cvQ/dhaNLexiqZwGfBzc1Sb+KrZkWdSxY4MLg6fNT6iKNXG4zyhZmckyn/j7FRuxzkHvVn rEjNrXKxlydQwhtx0FhNiV5DVBZd3rlV4odY2GijC+ovcbR7vvJYKsDD27rNCQvBySHvCU G1uJLgwmAcOf3sF5ht4HbcvjoPmOtSGgsBFWRC7JeHuwWOQlkFlpDYZ56QIIqg== 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=f6d403743c9eb1facdfcc0fdfbec74fb19dbbc21 commit f6d403743c9eb1facdfcc0fdfbec74fb19dbbc21 Author: Konstantin Belousov AuthorDate: 2021-11-28 03:48:05 +0000 Commit: Konstantin Belousov CommitDate: 2021-11-29 15:39:50 +0000 libc/net/getprotoent.c: Mark write-only variables as unused Sponsored by: The FreeBSD Foundation MFC after: 1 week --- lib/libc/net/getprotoent.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libc/net/getprotoent.c b/lib/libc/net/getprotoent.c index 73b069250499..b3bb52195dfc 100644 --- a/lib/libc/net/getprotoent.c +++ b/lib/libc/net/getprotoent.c @@ -144,11 +144,11 @@ int __proto_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 protoent *proto; - char *orig_buf; - size_t orig_buf_size; + char *orig_buf __unused; + size_t orig_buf_size __unused; struct protoent new_proto; size_t desired_size, size, aliases_size; @@ -231,8 +231,8 @@ int __proto_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 protoent *proto; char *orig_buf; size_t orig_buf_size;