Skip to content
Commit 5c4975a0 authored by Piotr Kubaj's avatar Piotr Kubaj
Browse files

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.
parent 12a9620a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment