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 35c7bb3407
removed the usage. To avoid too much
code churn, mark the variable unused to supress the warning.
MFC after: 3 days
This commit is contained in:
parent
e967183cb0
commit
57cdd13d07
@ -17406,7 +17406,7 @@ rack_output(struct tcpcb *tp)
|
||||
ipoptlen == 0)
|
||||
tso = 1;
|
||||
{
|
||||
uint32_t outstanding;
|
||||
uint32_t outstanding __unused;
|
||||
|
||||
outstanding = tp->snd_max - tp->snd_una;
|
||||
if (tp->t_flags & TF_SENTFIN) {
|
||||
|
Loading…
Reference in New Issue
Block a user