Date: Fri, 29 Jul 2022 18:47:19 GMT From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 97c280398e10 - stable/13 - Adjust sctp_drain() definition to avoid clang 15 warning Message-ID: <202207291847.26TIlJU1023937@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=97c280398e107579b6b7ea89322fc7e37d9a1c22 commit 97c280398e107579b6b7ea89322fc7e37d9a1c22 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-07-26 11:19:39 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207291847.26TIlJU1023937>