HomeFreeBSD

Adjust function definition in tcp_hpts.c to avoid clang 15 warning

Description

Adjust function definition in tcp_hpts.c to avoid clang 15 warning

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

sys/netinet/tcp_hpts.c:1594:23: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
tcp_choose_hpts_to_run()
                      ^
                       void

This is because tcp_choose_hpts_to_run() is declared with a (void)
argument list, but defined with an empty argument list. Make the
definition match the declaration.

MFC after: 3 days

(cherry picked from commit db6b32867d6ed996f8a9aad41ca6ffbaa2088e59)

Details

Provenance
dimAuthored on Aug 15 2022, 6:05 PM
Parents
rG894334abf436: Adjust function definition in arm64's db_trace.c to avoid clang 15 warning
Branches
Unknown
Tags
Unknown