diff options
author | Pavel Labath <pavel@labath.sk> | 2019-11-12 14:25:18 +0100 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2019-11-12 14:39:47 +0100 |
commit | 6aa60b0514865751ea9dd208236db60eb69aaf1e (patch) | |
tree | 2b6a086292f7815960884095215dc7759eebb905 /lldb/source/Host/common/SocketAddress.cpp | |
parent | 1dfb1a85e7cbc37bf6fff9bb046c6e8be0c26b8e (diff) | |
download | bcm5719-llvm-6aa60b0514865751ea9dd208236db60eb69aaf1e.tar.gz bcm5719-llvm-6aa60b0514865751ea9dd208236db60eb69aaf1e.zip |
[lldb] Fix more -Wdeprecated-copy warnings
This warning triggers when a class defines a copy constructor but not a
copy-assignment operator (which then gets auto-generated by the
compiler). Fix the warning by deleting the other operator too, as the
default implementation works just fine.
Diffstat (limited to 'lldb/source/Host/common/SocketAddress.cpp')
-rw-r--r-- | lldb/source/Host/common/SocketAddress.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lldb/source/Host/common/SocketAddress.cpp b/lldb/source/Host/common/SocketAddress.cpp index 882fd24558f..960ed18dc76 100644 --- a/lldb/source/Host/common/SocketAddress.cpp +++ b/lldb/source/Host/common/SocketAddress.cpp @@ -174,12 +174,6 @@ bool SocketAddress::SetPort(uint16_t port) { } // SocketAddress assignment operator -const SocketAddress &SocketAddress::operator=(const SocketAddress &rhs) { - if (this != &rhs) - m_socket_addr = rhs.m_socket_addr; - return *this; -} - const SocketAddress &SocketAddress:: operator=(const struct addrinfo *addr_info) { Clear(); |