]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust function definition in tcp_hpts.c to avoid clang 15 warning
authorDimitry Andric <dim@FreeBSD.org>
Mon, 15 Aug 2022 18:05:34 +0000 (20:05 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Mon, 15 Aug 2022 18:48:33 +0000 (20:48 +0200)
commitdb6b32867d6ed996f8a9aad41ca6ffbaa2088e59
treee94f3311fa00528f308693d21722e9fc39478b0b
parent940740891516c31a993cb0d267bd19f2d07ede49
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
sys/netinet/tcp_hpts.c