mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-29 10:18:30 +00:00
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.
This commit is contained in:
parent
12a9620a12
commit
5c4975a092
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user