From nobody Tue Jul 26 19:25:25 2022 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 4Lsn1d6bt8z4Ww5j; Tue, 26 Jul 2022 19:25:25 +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 4Lsn1d68grz3yd3; Tue, 26 Jul 2022 19:25:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658863525; 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=xs5K/1dwW7+3tpMPF9YOEfr0JaBVNfk45a0JYQ6dtS0=; b=lKbGUh+vi6A0VagTmFdF9T1EQZHCKt/60pIe14sxxcNOyTKnHL6zDRGMq48SkOHuAEDZk4 4fpptaAT8yHNnC2O5BcCx0wC6mVCgUqlPCOWKVmrDpSWniZITNyS+tdvpbN4Nm4VSRGpXL JBS3AsDqiYdJdbPm3A1sQhpMt9zNvOOjjt8LtkH8GewVg9EoLk733nrdq5fHcxo/bqDuTq +NEOQTFu3nhvyzKd8ijEQn6IcyKPXQijNmgKyo5UHV4HFwQXkRc7UDvnXYBN80wmVW0wV1 aOZgXqybyfbGOTlip/AbNYGxevimZecNT1Pev8hobD5AN3TN1Ae20lltH2hSvQ== 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 4Lsn1d5GMjzpPp; Tue, 26 Jul 2022 19:25:25 +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 26QJPPlA019733; Tue, 26 Jul 2022 19:25:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26QJPPQg019732; Tue, 26 Jul 2022 19:25:25 GMT (envelope-from git) Date: Tue, 26 Jul 2022 19:25:25 GMT Message-Id: <202207261925.26QJPPQg019732@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: c01fdd7a9f31 - main - Fix unused variable warning in netipsec's key_debug.c 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c01fdd7a9f316c8c04786441ca0113be002b96be Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658863525; 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=xs5K/1dwW7+3tpMPF9YOEfr0JaBVNfk45a0JYQ6dtS0=; b=I+fIpuRJ4RXdyqenSDOgiqdnZxOGap4FJaBUq7zOsfJKk7salbQf6rd/Oyho9ihhayxMD7 +a43exjYZsRa9LPILcom6/+M9t3ukuiEYMph+VVvYn9q/lwNwConS9ozZn9BqIq5IpJtPj hR0B/KRQbwYLfoWoFTWO7szojnK9D8cszFjFBr/TghIDO9xeJD5GXyJsclWswN8pZ3NGUm yYzEbDxccUqbbqZHpZqQLAZwkol/fk51lnH7VLPjmXk9T7iCPaGAqq/o/+y4rO+8T0LF8Y d4JqLZM3N40u/+AYeD8gWNIQFmIFgx3+QlVvY2cQA33meQdnzawtYwadA/4DgQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658863525; a=rsa-sha256; cv=none; b=mNtUjXwo3u/IZmpsg3TkibS3HfhpYS8hfflwG8ZjvAB+YUdChia3xMbrr9Zm1atThCBn2w l4HuDngdqjQTErrntzRr4UVnCDhIBqnoRmDaPOskJzCeObA6lAu0eoBBWExAaL9ouuRRCm obyArVwVXOj3M/s0AH2EH1dd9mw9klVtHoQR+6xiex2hXK+xhyoEjfKTdiw5YfXGadNRJi 9exBrf8P8wf9Uhs2ajTpmpwz/bZu+wiAQbutQz1yIgbwRsSUZvdcyvuoMkTUXz15NBSrU5 XJ1SHbIqE2S7h27f6HtITEpUIdtYl5j7h+5wWfp2Li/zRlkojbXIzePI0WaGCg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=c01fdd7a9f316c8c04786441ca0113be002b96be commit c01fdd7a9f316c8c04786441ca0113be002b96be Author: Dimitry Andric AuthorDate: 2022-07-26 19:21:44 +0000 Commit: Dimitry Andric CommitDate: 2022-07-26 19:25:09 +0000 Fix unused variable warning in netipsec's key_debug.c With clang 15, the following -Werror warning is produced: sys/netipsec/key_debug.c:923:9: error: variable 'j' set but not used [-Werror,-Wunused-but-set-variable] int i, j; ^ The 'j' variable was in key_debug.c when it was first added, but it appears to have been a debugging aid that has never been used, so remove it. MFC after: 3 days --- sys/netipsec/key_debug.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/netipsec/key_debug.c b/sys/netipsec/key_debug.c index 58f2d2b614c5..3705879397ff 100644 --- a/sys/netipsec/key_debug.c +++ b/sys/netipsec/key_debug.c @@ -920,9 +920,9 @@ void kdebug_mbuf(const struct mbuf *m0) { const struct mbuf *m = m0; - int i, j; + int i; - for (j = 0; m; m = m->m_next) { + for (; m; m = m->m_next) { kdebug_mbufhdr(m); printf(" m_data:\n"); for (i = 0; i < m->m_len; i++) { @@ -931,7 +931,6 @@ kdebug_mbuf(const struct mbuf *m0) if (i % 4 == 0) printf(" "); printf("%02x", mtod(m, const u_char *)[i]); - j++; } printf("\n"); }