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

Details

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