From nobody Sun Aug 21 11:29:06 2022 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 4M9YD32FsKz4ZYhY; Sun, 21 Aug 2022 11:29:07 +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 4M9YD31l83z3wqs; Sun, 21 Aug 2022 11:29:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081347; 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=iAkH1T95kw6vijM4ZClmgEB5YL993VG0MUiXU3Z0ZQM=; b=rRq6KbzO6SJ/qCoJdgnX9Zr3Qfwj6lhat/fH/6aJgnFYLhsY3mh0UZufuaLHD8poGRabWu KHA546Q/hQ5G3zstFS2r0efEsEUQ5Iw2H2IqEeU5daQVbPjqQZaTewBIbyz/KV/ezM4ebi atfv9iIxewcCy8HU1aYh8IQY+7UZi7AiZjqZybrOYn6CtsQKulbYLTrld0Hp4JrJprl2P+ zP4CHE8GHgNyRbCxPssnyEoZ3JksG/nPXr0wDvCjSsGPkSBACbdlHTB4cgkoQyr+1j67zY JqyzVHt4SszKKx6GWP8TanUF5LL0YC+kuYmQTB6QAzsz71+Qef/PN2UwYQypMA== 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 4M9YD30lKnz18KS; Sun, 21 Aug 2022 11:29:07 +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 27LBT7rc004366; Sun, 21 Aug 2022 11:29:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27LBT6BD004365; Sun, 21 Aug 2022 11:29:06 GMT (envelope-from git) Date: Sun, 21 Aug 2022 11:29:06 GMT Message-Id: <202208211129.27LBT6BD004365@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: f0393361ecc3 - stable/13 - Suppress unused variable warning in tcp_stacks's rack.c 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: f0393361ecc39685ee02afd7d4364ee97722befd Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081347; 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=iAkH1T95kw6vijM4ZClmgEB5YL993VG0MUiXU3Z0ZQM=; b=Zd4gxixVGHVjnTBEN3UZaDMjbzAMzns9lbYvi+kLiAHPMVxjsKRxwO5CkKeHsB3d2WoMu9 INrx9U/EamFW+5ASqHd+rV/ybMga53KjnF4WQPrmQ7OkKtEx9rj2nDI65uWCEthEqOq/Fg nlkH6MtxgIXDT1GnUehT9DciXvRVHsLREnnyhWDEUUJLLQO/89nJKXtZGcLTjcSumIxHbr iSmyt289BaH5bNxh5lbCHtPRpY9cXtLKTYGAt3LmPq7Q+1djohLTYr0v9Ta3xeG/ugZ/b7 J+h+ZuQ5Vyf4pqWVxo9OTNM2GEPQUtxDgfBHeBrlQfjZDIoi8fOd7SCCnC4KWw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661081347; a=rsa-sha256; cv=none; b=tJz2rvRX+gJad4h8oQT+rnVSbMFcEDzisbfTBF8mGAkQO3Rpzv2MlLj+ozzKQACLRZ12PQ nOks5kWirGtojbT27aKKkEE9sjsm2k3P5J8N63uLB8tegWYRLArDdNmPZE9GFHc5sWYnD+ oeksetvdq4YVnjLwNENaBHBZid3oZWb2fRrM/m/2zE31vaoOYcoY+i6ZWmDOmHRECKsFk6 3QmdoetB0VwOzLPWezvuUu55rHXepeMxBJfmIz6lu8QU9+Yqo0XU0kSF3I6A56AWl9WxrO 9TjqZA8TRpsO/UEI+vyBy3XFVctt3Si8iPq2FOVH3+tWhzjyhlRtdXU99VpAxw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=f0393361ecc39685ee02afd7d4364ee97722befd commit f0393361ecc39685ee02afd7d4364ee97722befd Author: Dimitry Andric AuthorDate: 2022-08-14 19:27:16 +0000 Commit: Dimitry Andric CommitDate: 2022-08-21 11:13:31 +0000 Suppress unused variable warning in tcp_stacks's rack.c With clang 15, the following -Werror warning is produced: sys/netinet/tcp_stacks/rack.c:17405:12: error: variable 'outstanding' set but not used [-Werror,-Wunused-but-set-variable] uint32_t outstanding; ^ The 'outstanding' variable was used later in the rack_output() function, but refactoring in 35c7bb340788f removed the usage. To avoid too much code churn, mark the variable unused to supress the warning. MFC after: 3 days (cherry picked from commit 57cdd13d072e56bf68c7b3d3b446aaf01288e12b) --- sys/netinet/tcp_stacks/rack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/tcp_stacks/rack.c b/sys/netinet/tcp_stacks/rack.c index 30508f5666d8..8891916e2f14 100644 --- a/sys/netinet/tcp_stacks/rack.c +++ b/sys/netinet/tcp_stacks/rack.c @@ -16975,7 +16975,7 @@ again: ipoptlen == 0) tso = 1; { - uint32_t outstanding; + uint32_t outstanding __unused; outstanding = tp->snd_max - tp->snd_una; if (tp->t_flags & TF_SENTFIN) {