HomeFreeBSD

Fix unused variable warning in tcp_stacks's bbr.c

Description

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

(cherry picked from commit 762489657117037d963aa840374280583acd32c2)

Details

Provenance
dimAuthored on Aug 14 2022, 7:06 PM
Parents
rG94c282b1eff4: Adjust function definition in arm's dtrace_subr.c to avoid clang 15 warning
Branches
Unknown
Tags
Unknown