]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix unused variable warning in tcp_stacks's bbr.c
authorDimitry Andric <dim@FreeBSD.org>
Sun, 14 Aug 2022 19:06:07 +0000 (21:06 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Sun, 14 Aug 2022 19:27:34 +0000 (21:27 +0200)
commit762489657117037d963aa840374280583acd32c2
treeb4a7676db40daef702bb0a88f608ac09ce59dfce
parent9762d48b7f12f7085d3f6ad83b3ca5ebd226b697
Fix unused variable warning in tcp_stacks's bbr.c

With clang 15, the following -Werror warning is produced:

sys/netinet/tcp_stacks/bbr.c:11925:11: error: variable 'rtr_cnt' set but not used [-Werror,-Wunused-but-set-variable]
        uint32_t rtr_cnt = 0;
                 ^

The 'rtr_cnt' variable was in bbr.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/netinet/tcp_stacks/bbr.c