Closed nighthawk24 closed 1 year ago
Please add a relicense statement https://github.com/zeromq/libzmq/tree/master/RELICENSE
../../src/tcp_address.cpp: In instantiation of ‘std::string make_address_string(const char*, uint16_t, const char (&)[N1], const char (&)[N2]) [with long unsigned int N1 = 8; long unsigned int N2 = 3; std::string = std::__cxx11::basic_string<char>; uint16_t = short unsigned int]’:
../../src/tcp_address.cpp:158:37: required from here
../../src/tcp_address.cpp:132:27: error: argument to ‘sizeof’ in ‘int snprintf(char*, size_t, const char*, ...)’ call is the same expression as the destination; did you mean to provide an explicit length? [-Werror=sizeof-pointer-memaccess]
132 | pos += snprintf (pos, sizeof(pos), "%d", ntohs (port_));
| ^~~~~~~~~~~
../../src/tcp_address.cpp: In instantiation of ‘std::string make_address_string(const char*, uint16_t, const char (&)[N1], const char (&)[N2]) [with long unsigned int N1 = 7; long unsigned int N2 = 2; std::string = std::__cxx11::basic_string<char>; uint16_t = short unsigned int]’:
../../src/tcp_address.cpp:161:37: required from here
../../src/tcp_address.cpp:132:27: error: argument to ‘sizeof’ in ‘int snprintf(char*, size_t, const char*, ...)’ call is the same expression as the destination; did you mean to provide an explicit length? [-Werror=sizeof-pointer-memaccess]
tests are still failing
Fixes https://github.com/zeromq/libzmq/issues/4478 Fixes https://github.com/zcash/zcash/issues/6006 & https://github.com/zcash/zcash/issues/6296