diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2022-08-14 19:27:16 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2022-08-14 19:27:35 +0000 |
commit | 57cdd13d072e56bf68c7b3d3b446aaf01288e12b (patch) | |
tree | 97d1ce93fb822660b674dbe48deddedea5b336f9 | |
parent | e967183cb030dfc349c264520e5710bac70bcdd4 (diff) | |
download | src-57cdd13d072e56bf68c7b3d3b446aaf01288e12b.tar.gz src-57cdd13d072e56bf68c7b3d3b446aaf01288e12b.zip |
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
-rw-r--r-- | sys/netinet/tcp_stacks/rack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_stacks/rack.c b/sys/netinet/tcp_stacks/rack.c index 0cb7b5cb4680..0c91c9c6703f 100644 --- a/sys/netinet/tcp_stacks/rack.c +++ b/sys/netinet/tcp_stacks/rack.c @@ -17406,7 +17406,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) { |