HomeFreeBSD

Fix unused variable warning in sctp_output.c

Description

Fix unused variable warning in sctp_output.c

With clang 15, the following -Werror warning is produced:

sys/netinet/sctp_output.c:9367:33: error: variable 'cnt_thru' set but not used [-Werror,-Wunused-but-set-variable]
        int no_fragmentflg, bundle_at, cnt_thru;
                                       ^

The 'cnt_thru' variable was in sctp_output.c when it was first added,
but appears to have been a debugging aid that has never been used, so
remove it.

MFC after: 3 days

(cherry picked from commit 9057feddc4b05d2b2b29e4db274c28af3d574d76)

Details

Provenance
dimAuthored on Jul 25 2022, 7:50 PM
Parents
rG27499664ce3b: Adjust function definitions in pf.c to avoid clang 15 warnings
Branches
Unknown
Tags
Unknown