• Max Kellermann's avatar
    net/IPv[46]Address: add cast to void* to fix GCC9 build failure · 37b54179
    Max Kellermann authored
    Fixes:
    
     src/net/IPv4Address.hxx: In member function 'constexpr IPv4Address::operator SocketAddress() const':
     src/net/IPv4Address.hxx:171:24: error: a reinterpret_cast is not a constant expression
       171 |   return SocketAddress((const struct sockaddr *)&address,
           |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
     src/net/IPv6Address.hxx: In member function 'constexpr IPv6Address::operator SocketAddress() const':
     src/net/IPv6Address.hxx:138:24: error: a reinterpret_cast is not a constant expression
       138 |   return SocketAddress((const struct sockaddr *)&address,
           |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    Closes https://github.com/MusicPlayerDaemon/MPD/issues/522
    37b54179
Name
Last commit
Last update
..
AddressInfo.cxx Loading commit data...
AddressInfo.hxx Loading commit data...
AllocatedSocketAddress.cxx Loading commit data...
AllocatedSocketAddress.hxx Loading commit data...
Features.hxx Loading commit data...
HostParser.cxx Loading commit data...
HostParser.hxx Loading commit data...
IPv4Address.cxx Loading commit data...
IPv4Address.hxx Loading commit data...
IPv6Address.cxx Loading commit data...
IPv6Address.hxx Loading commit data...
Init.hxx Loading commit data...
Resolver.cxx Loading commit data...
Resolver.hxx Loading commit data...
SocketAddress.cxx Loading commit data...
SocketAddress.hxx Loading commit data...
SocketDescriptor.cxx Loading commit data...
SocketDescriptor.hxx Loading commit data...
SocketError.cxx Loading commit data...
SocketError.hxx Loading commit data...
SocketUtil.cxx Loading commit data...
SocketUtil.hxx Loading commit data...
StaticSocketAddress.cxx Loading commit data...
StaticSocketAddress.hxx Loading commit data...
ToString.cxx Loading commit data...
ToString.hxx Loading commit data...
UniqueSocketDescriptor.hxx Loading commit data...
meson.build Loading commit data...