From nobody Mon Jul 25 19:51:11 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 4Ls9dr22dgz4WbDv; Mon, 25 Jul 2022 19:51:12 +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 4Ls9dr1PdBz3jxp; Mon, 25 Jul 2022 19:51:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658778672; 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=4a9+ULomlRIqY1sfsH1fgcrYDU4u2LyioOETkBHBNDk=; b=unb+vNAQAa83CqdobzOkl4hc9PCI5gE+AOiZi9YQRFDXJftSCMVrv7CXv3R+uVjWpq8VEx n/Zqx+MBPo1RDou6H8SnWFYUWa0aCIPhtOqFUlMdjgVRp5IRM0n0NSz/I9gSOrnIogiAbR DPnOSsXYg16m/pAiFfD+5WDaDR/oHtHaYYO+8QdcALUVzRRrafYh1lplm2Txz0Pmh90OI1 rKlEOy9xpkJ8n5YPMzcNz3OtSVwGLMKfWr+uapS0KgDOE0xfbrFlq8alUw2evntbKSWa4p xDKEbZy0uzS+80n/aKoO1YObYpxpoBer18goevDX+/SbJ6lnzbJ0Co1juMfqfA== 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 4Ls9dr0P5Lz18Rm; Mon, 25 Jul 2022 19:51:12 +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 26PJpBrx003388; Mon, 25 Jul 2022 19:51:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26PJpBON003387; Mon, 25 Jul 2022 19:51:11 GMT (envelope-from git) Date: Mon, 25 Jul 2022 19:51:11 GMT Message-Id: <202207251951.26PJpBON003387@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: 9057feddc4b0 - main - Fix unused variable warning in sctp_output.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: 9057feddc4b05d2b2b29e4db274c28af3d574d76 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658778672; 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=4a9+ULomlRIqY1sfsH1fgcrYDU4u2LyioOETkBHBNDk=; b=Zm+x5Gv0CVFAGbPlkhTDvhCuTuuOdQbZWU0ZvK5V3gW4AcMmmYgP+r/su/wKvcRBJB5SFC hbd+xtE5GoJNuTUkArxS1nduYza2stITn8l9v2OrN76qyHLTAyq03BMELOv6M6psMyogst YRcKEvisn0CNL9ZM88lS52LbRQOEzUCa3rsBXNYUrrxUSs2kBMwsllu2zTZdcBVK3bN36W QfE6QgQMo/qVVu85BSe3P6p19cuRGhzqVE1x+mhGQHVF+Ydrx1CNFx94FKZHBboIo+rdtR xaHWbd2pKQygyuBIAGRFUBbhrTMNCpTWkKKui5QUv+5TR8hTiYanE8d1aZNPlQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658778672; a=rsa-sha256; cv=none; b=eYTF3Fchw9kZ00FgaK/E5qMLIIf0dRAX8oAHuIND9uI7J0m+Dj/MiwAwRu1b9t/izak7xD Hi+U/jTYAG3/lDHWo9epS5d+AJWOXL8K9cgljJt3rLAPpqpHi4uL92WgKFJIhQZYWlDXd/ SA4B+vvIn9YcYjLKdL8NEjMc2JqGIIHfZzTKClvEL935rmdWLK8ZuEQ0nNysBVCA5na1M5 qBuP4asF4F5LFzlI0wWViG8dfBV1wKmURDNiC20u1BwiENMLml7Ov0MZEresUt2SwZuCIE CkJ8H/uAeZ7aINcs3cLcu4jog0R2QBJ0CWks/xFEcPU+KViwNv38Pf7K3Uzy+Q== 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=9057feddc4b05d2b2b29e4db274c28af3d574d76 commit 9057feddc4b05d2b2b29e4db274c28af3d574d76 Author: Dimitry Andric AuthorDate: 2022-07-25 19:50:40 +0000 Commit: Dimitry Andric CommitDate: 2022-07-25 19:50:51 +0000 Fix unused variable warning in sctp_output.c With clang 15, the following -Werror warning is produced: sys/netinet/sctp_output.c:9367:33: error: variable 'cnt_thru' set but not used [-Werror,-Wunused-but-set-variable] int no_fragmentflg, bundle_at, cnt_thru; ^ The 'cnt_thru' variable was in sctp_output.c when it was first added, but appears to have been a debugging aid that has never been used, so remove it. MFC after: 3 days --- sys/netinet/sctp_output.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c index 629fd65d1aa6..49830676d7eb 100644 --- a/sys/netinet/sctp_output.c +++ b/sys/netinet/sctp_output.c @@ -9364,7 +9364,7 @@ sctp_chunk_retransmission(struct sctp_inpcb *inp, struct mbuf *m, *endofchain; struct sctp_nets *net = NULL; uint32_t tsns_sent = 0; - int no_fragmentflg, bundle_at, cnt_thru; + int no_fragmentflg, bundle_at; unsigned int mtu; int error, i, one_chunk, fwd_tsn, ctl_cnt, tmr_started; struct sctp_auth_chunk *auth = NULL; @@ -9433,7 +9433,6 @@ sctp_chunk_retransmission(struct sctp_inpcb *inp, } } one_chunk = 0; - cnt_thru = 0; /* do we have control chunks to retransmit? */ if (m != NULL) { /* Start a timer no matter if we succeed or fail */ @@ -9749,7 +9748,6 @@ one_chunk_around: /* (void)SCTP_GETTIME_TIMEVAL(&net->last_sent_time); */ /* For auto-close */ - cnt_thru++; if (*now_filled == 0) { (void)SCTP_GETTIME_TIMEVAL(&asoc->time_last_sent); *now = asoc->time_last_sent;