The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=97c280398e107579b6b7ea89322fc7e37d9a1c22
commit 97c280398e107579b6b7ea89322fc7e37d9a1c22 Author: Dimitry Andric <[email protected]> AuthorDate: 2022-07-26 11:19:39 +0000 Commit: Dimitry Andric <[email protected]> CommitDate: 2022-07-29 18:28:09 +0000 Adjust sctp_drain() definition to avoid clang 15 warning With clang 15, the following -Werror warning is produced: sys/netinet/sctp_pcb.c:6946:11: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] sctp_drain() ^ void This is because sctp_drain() 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 24e13a49faabb22ece97dc8e4718caf8f6bad84c) --- sys/netinet/sctp_pcb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index e0ac06f2f87e..6dc31625440f 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -6954,7 +6954,7 @@ sctp_drain_mbufs(struct sctp_tcb *stcb) } void -sctp_drain() +sctp_drain(void) { /* * We must walk the PCB lists for ALL associations here. The system
