]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Suppress unused variable warning in tcp_stacks's rack.c
authorDimitry Andric <dim@FreeBSD.org>
Sun, 14 Aug 2022 19:27:16 +0000 (21:27 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Sun, 14 Aug 2022 19:27:35 +0000 (21:27 +0200)
commit57cdd13d072e56bf68c7b3d3b446aaf01288e12b
tree97d1ce93fb822660b674dbe48deddedea5b336f9
parente967183cb030dfc349c264520e5710bac70bcdd4
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
sys/netinet/tcp_stacks/rack.c