[Lldb-commits] [PATCH] D132841: [lldb] Use the NativeSock type instead of plain 'int'
Martin Storsjö via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 29 03:29:03 PDT 2022
mstorsjo created this revision.
mstorsjo added reviewers: labath, fixathon, jasonmolenda, clayborg, JDevlieghere, DavidSpickett.
Herald added a project: All.
mstorsjo requested review of this revision.
Herald added a project: LLDB.
This fixes a warning when building for Windows:
../tools/lldb/source/Host/common/TCPSocket.cpp:297:16: warning: comparison of integers of different signs: 'int' and 'const NativeSocket' (aka 'const unsigned long long') [-Wsign-compare]
if (sock != kInvalidSocketValue) {
~~~~ ^ ~~~~~~~~~~~~~~~~~~~
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D132841
Files:
lldb/source/Host/common/TCPSocket.cpp
Index: lldb/source/Host/common/TCPSocket.cpp
===================================================================
--- lldb/source/Host/common/TCPSocket.cpp
+++ lldb/source/Host/common/TCPSocket.cpp
@@ -261,8 +261,8 @@
return error;
}
- int sock = kInvalidSocketValue;
- int listen_sock = kInvalidSocketValue;
+ NativeSocket sock = kInvalidSocketValue;
+ NativeSocket listen_sock = kInvalidSocketValue;
lldb_private::SocketAddress AcceptAddr;
MainLoop accept_loop;
std::vector<MainLoopBase::ReadHandleUP> handles;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132841.456298.patch
Type: text/x-patch
Size: 535 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220829/62b65d4f/attachment.bin>
More information about the lldb-commits
mailing list