Date: Mon, 29 Jul 2024 15:10:24 GMT From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 5c4975a092a5 - main - net/udt: fix build on 14.1-RELEASE Message-ID: <202407291510.46TFAO0h061055@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=5c4975a092a5cff10ed13024c4b6f17c7294d230 commit 5c4975a092a5cff10ed13024c4b6f17c7294d230 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2024-07-29 11:40:45 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2024-07-29 15:10:11 +0000 net/udt: fix build on 14.1-RELEASE core.cpp:2465:19: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension] 2465 | char cookiestr[(AF_INET == addr->sa_family ? INET_ADDRSTRLEN : INET6_ADDRSTRLEN) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2466 | sizeof(clientport) + 64]; | ~~~~~~~~~~~~~~~~~~~~~~~ core.cpp:2465:31: note: function parameter 'addr' with unknown value cannot be used in a constant expression 2465 | char cookiestr[(AF_INET == addr->sa_family ? INET_ADDRSTRLEN : INET6_ADDRSTRLEN) + | ^ core.cpp:2452:28: note: declared here 2452 | int CUDT::listen(sockaddr* addr, CPacket& packet) | ^ 1 error generated. --- net/udt/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/udt/Makefile b/net/udt/Makefile index 08fe1c9218f0..2c66fda09b64 100644 --- a/net/udt/Makefile +++ b/net/udt/Makefile @@ -22,6 +22,8 @@ OPTIONS_DEFINE= DOCS DOCS_VARS_OFF= EXTRACT_AFTER_ARGS+="--exclude udt${PORTVERSION:R}/doc" +CXXFLAGS+= -Wno-error=vla-cxx-extension + post-build: # Building sample applications: .for a in ${UDT_APPS}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202407291510.46TFAO0h061055>