From nobody Sun Aug 21 11:29:38 2022 X-Original-To: dev-commits-src-branches@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 4M9YDf6XGHz4ZYsk; Sun, 21 Aug 2022 11:29:38 +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 4M9YDf62qxz40HG; Sun, 21 Aug 2022 11:29:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081378; 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=cZxcQphEvq9kjnjs7zeu+qeO48d002SSYuGwU0j1DDk=; b=p00MAjixrXgrJPnv0UX3cWj/hD16eMxOYK8jjAdZaRIxFwXGRO23f2YMESRbIWnUaJOOcb HgqpNrucJ1aSqX30fnYsnzsHy00JIftrcdQn+yE8asD7+CqD6TSEa7nimneKWa54h22U9s +Y2WFXNc3jSIvFz2XeeSstNjanVZBhfg5DMTiIqzQBgTrGOBGWqL6B6r74uwS98WoK3mhG yA9UjbZ905ZkBa8TVkFRXMroSIE0SEzsGHQK8N/cmZpWqFZNnpw5sJgbhsDdf37Ft9sPds n9iNd8P/xNzLk5YEF773eDV3/FEPpC6KUJ5K7c9UHwAOkFvY/oTZRXMZSUu/uA== 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 4M9YDf4qdzz17xs; Sun, 21 Aug 2022 11:29:38 +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 27LBTcYa005166; Sun, 21 Aug 2022 11:29:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27LBTceH005165; Sun, 21 Aug 2022 11:29:38 GMT (envelope-from git) Date: Sun, 21 Aug 2022 11:29:38 GMT Message-Id: <202208211129.27LBTceH005165@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: f3a9d6009c18 - stable/12 - Suppress unused variable warning in tcp_stacks's rack.c List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/12 X-Git-Reftype: branch X-Git-Commit: f3a9d6009c18ff40e19ffd9d61aa584cf57a6595 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081378; 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=cZxcQphEvq9kjnjs7zeu+qeO48d002SSYuGwU0j1DDk=; b=UDb1md7B9qxoxWQn3j8milc9T4uwf/0Jz3lAplXRKwul8QWcd4FCI0nFiAJEMYyMJ+3gKY swe93agoJGIBaaQzcSYJYFpeBnDH0Wn7YPKYBBW3mWWBP/m0OBkn1R4VVBRRHFm0NswW8V BDrk3pYxQ6T9zIC05538z64U1GqcOYvT/rBirocvA/3LCmJxOcXJ/Am7Gqt6/1aDq96Aka S4YI4ArKMhQ4zCXtgRDcFc1EaFZKltE9xrYcr8p/lvws8EZV45bh2C/c+rayU7YScBZQYt yFG1dIXUWO+PeU1WxI49p0/tbinwm6+7vnrtDD+y843XZqxDuACSLws5nBX3Nw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661081378; a=rsa-sha256; cv=none; b=vSOX4RSmXPTfBJ6ptqMK074gBO8k3mpuPZshmn+kF3ef0+N3ehoVtwbWOyWB4emx1KpFEJ GEvy9jNPpoe9GKnay7eKlDuStpCpXiA6WJ8v7EQ31TocBxI0Ey9z6ZpBMK5voOEpbYZqv0 A2pssS1k3umMHDEUzC/Sk/7YQl5sSRocr+4a8iKQO9nCbJh83QLxa3MqPm4c818Jcp/y0g LPeJhlf8DD2kkKWSZu/Y+FKqQpkgrd2KTk9IQy4pOdZ2Grq5AWoIKtWfoZ2bAOHAYCjG4v Fjmi9OkYL+dV3m3KDJuaFeYOvQsA/yc24yuh5Ej7IxV7oxSzJEzFCQj1CQcqAA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=f3a9d6009c18ff40e19ffd9d61aa584cf57a6595 commit f3a9d6009c18ff40e19ffd9d61aa584cf57a6595 Author: Dimitry Andric AuthorDate: 2022-08-14 19:27:16 +0000 Commit: Dimitry Andric CommitDate: 2022-08-21 11:20:41 +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 d12344ed1b89..f9269c5f55cf 100644 --- a/sys/netinet/tcp_stacks/rack.c +++ b/sys/netinet/tcp_stacks/rack.c @@ -7597,7 +7597,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) {