From nobody Sun Aug 14 19:27:58 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 4M5S9q18VSz4YvG2; Sun, 14 Aug 2022 19:27:59 +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 4M5S9q0CXWz3MFg; Sun, 14 Aug 2022 19:27:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660505279; 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=V8Z/Tr01NpTCC7gP/mXCJgIgUzEcI7iU54eEPFZoQe8=; b=RwN2OYqDAHSqZvtN7NA8D3ScPSIOpvCObg/gE0jh7DQmnF1X0FSJNx2rNKoZxMvAP8/HR7 jGyGWYd1fN9m6wR4pJrq0Y3bPHZCF+ROsogAxWdwPcXj6so9SurVsjdU+b2Qy0J9C2VERA Mws+1KAef2PctdFjjKhtXL67JZdCgmVFspJspkS+tcEGGpOlzyxB3aNGROThr/bwv5braH gVQQdD/jYMbVuP8fNViHoJV/zGhJXQDsPfDrogY0ARcXtk34XZLhPlb0dHeQZfLwfn7qdI KDV04AAjf+pBf0lRIKJnIDaVTanWo9+vjn+IQ8b1Iwh1zXokLCA1ZwcL2+KM6A== 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 4M5S9p6Q8Jz12YK; Sun, 14 Aug 2022 19:27:58 +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 27EJRwrJ044390; Sun, 14 Aug 2022 19:27:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27EJRwKh044389; Sun, 14 Aug 2022 19:27:58 GMT (envelope-from git) Date: Sun, 14 Aug 2022 19:27:58 GMT Message-Id: <202208141927.27EJRwKh044389@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: 57cdd13d072e - main - 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/main X-Git-Reftype: branch X-Git-Commit: 57cdd13d072e56bf68c7b3d3b446aaf01288e12b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660505279; 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=V8Z/Tr01NpTCC7gP/mXCJgIgUzEcI7iU54eEPFZoQe8=; b=lqHK1q9HA07TkwfR8FqdqTzd3ReCM+oGTtj7EWRBxsteS6FPS9GHOa5yDh5gc0a3E50Gm+ Q3v+u6Mj3ga0DUwCUaNd0ypddJEVnLXt3o9I1DxkvnV+Tg2H2mi2WxB2B0jO0EyFxBaBgP uieWiD2mC6qt7APJFuhQ1jliql1mj6zmND9U3SBp77/Yo0kO52nQPzq9ywqLCTVVdAnotI llAyE6RWV+8k8JYOxwZ0DWAnrrwDG9OINEIw8ySs0+xzeAT3uuKpc+QlrOtldrYAk6kho4 Us6Yw6GfvGE5yJsF4BAqtlW4IYNKacY5MNRTnOYikjWAlCKnKGHcnigSB3ST6A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660505279; a=rsa-sha256; cv=none; b=haam5M36PY6qSlVeM0YhgSdtSkEt6GWloGOunH67pNDQfSfh7RsyuxGI0fvISAG+o8bx2G F/Hqc8q9HqqEYpzdDh2W/pgrsiLVko+wwpJaKSHehftCD6M9UWSQfCngHnEhYROCBCqQCn APgJ/n2l57Ka+LBg9PjknPcuW11513YUTkuUJYIEUCaS9iVUUB4aaPUi5U9CB2BxfnNWPo 9aQ/Iw1Qs6FrWf6ZiImmQiZ0FZL1ux2ZJsA1jHjOvCHWl6kR4/GmZrK58dlEHVcM3dA46A ERibbtZKyhOUnX1Fy5YmgWxLGLEN3Tf6hX/WG1R7WINqZRZPedsn37XDbHfxkA== 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=57cdd13d072e56bf68c7b3d3b446aaf01288e12b commit 57cdd13d072e56bf68c7b3d3b446aaf01288e12b Author: Dimitry Andric AuthorDate: 2022-08-14 19:27:16 +0000 Commit: Dimitry Andric CommitDate: 2022-08-14 19:27:35 +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 --- 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 0cb7b5cb4680..0c91c9c6703f 100644 --- a/sys/netinet/tcp_stacks/rack.c +++ b/sys/netinet/tcp_stacks/rack.c @@ -17406,7 +17406,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) {