The branch stable/13 has been updated by dim:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=f0393361ecc39685ee02afd7d4364ee97722befd

commit f0393361ecc39685ee02afd7d4364ee97722befd
Author:     Dimitry Andric <[email protected]>
AuthorDate: 2022-08-14 19:27:16 +0000
Commit:     Dimitry Andric <[email protected]>
CommitDate: 2022-08-21 11:13:31 +0000

    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
    
    (cherry picked from commit 57cdd13d072e56bf68c7b3d3b446aaf01288e12b)
---
 sys/netinet/tcp_stacks/rack.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netinet/tcp_stacks/rack.c b/sys/netinet/tcp_stacks/rack.c
index 30508f5666d8..8891916e2f14 100644
--- a/sys/netinet/tcp_stacks/rack.c
+++ b/sys/netinet/tcp_stacks/rack.c
@@ -16975,7 +16975,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) {

Reply via email to