From nobody Mon Nov 29 15:43:02 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 220AF18BC3B8; Mon, 29 Nov 2021 15:43:03 +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 4J2qPL5pK6z4nQh; Mon, 29 Nov 2021 15:43:02 +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 A698B25234; Mon, 29 Nov 2021 15:43:02 +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 1ATFh2rs065699; Mon, 29 Nov 2021 15:43:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ATFh2ME065698; Mon, 29 Nov 2021 15:43:02 GMT (envelope-from git) Date: Mon, 29 Nov 2021 15:43:02 GMT Message-Id: <202111291543.1ATFh2ME065698@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: 701473ef9468 - main - libc/gen/getpwent.c: plug warnings about write-only variables 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: 701473ef9468cf0f0482fb2c62344637dbdcce96 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638200582; 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=aqz4mNZkrbeomIQCOOCRnob2niAJIGxQjIFiAb3deak=; b=RI5nzE26XsRsOKhTkNzPKtdxAaQhwCzHTcdRFEBrNyRRdKPpW0O9ts7Ca3altTOT5BqJ2i 2ebi0aI6R9KzLCFcFNf5Wkqkb7njFZbU6y9KSO0uZsR4HsctbFqWnNAFhR+LLBslPDlkNA rRAwUmALXCHec5DxsZillxUyFNtDyUvwJ+RA0N4bJheBwLQfrcu1XwwzstSLrKrGoG14gE H4Cre8rhWh5s1brL9x/iolop3W3IBUYq3bAYZSx2AXWHOupm9LzvIRuZ/D9PB7F3zJhlJD 6jOLb1y84r+3ep8/WEKBJae49zXauwWJRxoMyD6kzywkZQR0gYpWSIUowqZJFA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638200582; a=rsa-sha256; cv=none; b=j0GLccQwDVEcwDIUzW7RPeWTLqTj0/C1lN3dKLhh31VP5sHS/yur2TKraINN04YKvPG6ZJ PqXiFqtPDAWSx3EJaZ5dJLTv5LuZzRZHy0a4rUVvseJexLaOQwZKmgEwPARlxBuUTpztnx SZU/wQVs6w4pYcD2oOJJKd4rzOsC8nw/SiFpsJpU3WOo/++PbuYBrrUuhnx8O2LNMDshtr FTnoNyBZu+OrRG6jlzMFNINrAQ9rh9mv5xMpf5p2JOS2eNzdBG+FBGYy0Us9ppHUlS+g/c cdwbzXikEdNygkjz27kBpYq98qfSmC+YZRxmk29utLndN50leqjUAxtn44OmJg== 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=701473ef9468cf0f0482fb2c62344637dbdcce96 commit 701473ef9468cf0f0482fb2c62344637dbdcce96 Author: Konstantin Belousov AuthorDate: 2021-11-28 02:50:18 +0000 Commit: Konstantin Belousov CommitDate: 2021-11-29 15:39:50 +0000 libc/gen/getpwent.c: plug warnings about write-only variables Sponsored by: The FreeBSD Foundation MFC after: 1 week --- lib/libc/gen/getpwent.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c index bc1d341fd3ad..634fc4fc8229 100644 --- a/lib/libc/gen/getpwent.c +++ b/lib/libc/gen/getpwent.c @@ -257,11 +257,11 @@ static int pwd_marshal_func(char *buffer, size_t *buffer_size, void *retval, va_list ap, void *cache_mdata) { - char *name; - uid_t uid; + char *name __unused; + uid_t uid __unused; struct passwd *pwd; - char *orig_buf; - size_t orig_buf_size; + char *orig_buf __unused; + size_t orig_buf_size __unused; struct passwd new_pwd; size_t desired_size, size; @@ -361,8 +361,8 @@ static int pwd_unmarshal_func(char *buffer, size_t buffer_size, void *retval, va_list ap, void *cache_mdata) { - char *name; - uid_t uid; + char *name __unused; + uid_t uid __unused; struct passwd *pwd; char *orig_buf; size_t orig_buf_size;