summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/windows/ConnectionGenericFileWindows.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-02-25 18:42:47 +0000
committerZachary Turner <zturner@google.com>2015-02-25 18:42:47 +0000
commit171d943ac53788d5a41e35927d71dca30f878519 (patch)
tree70e7d7eb438519e1dff9203cc51116e335215dac /lldb/source/Host/windows/ConnectionGenericFileWindows.cpp
parentf42e83cf722b71d82830e038143e3266a1b24a60 (diff)
downloadbcm5719-llvm-171d943ac53788d5a41e35927d71dca30f878519.tar.gz
bcm5719-llvm-171d943ac53788d5a41e35927d71dca30f878519.zip
Fix warnings found with clang-cl.
Earlier this week I was able to get clang-cl on Windows to be able to self host. This opened the door to being able to get a whole new slew of warnings for the Windows build. This patch fixes all of the warnings, many of which were real bugs. llvm-svn: 230522
Diffstat (limited to 'lldb/source/Host/windows/ConnectionGenericFileWindows.cpp')
-rw-r--r--lldb/source/Host/windows/ConnectionGenericFileWindows.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Host/windows/ConnectionGenericFileWindows.cpp b/lldb/source/Host/windows/ConnectionGenericFileWindows.cpp
index bbf315019aa..e2b23d0a0f5 100644
--- a/lldb/source/Host/windows/ConnectionGenericFileWindows.cpp
+++ b/lldb/source/Host/windows/ConnectionGenericFileWindows.cpp
@@ -208,9 +208,9 @@ ConnectionGenericFile::Read(void *dst, size_t dst_len, uint32_t timeout_usec, ll
TimeValue time_value;
time_value.OffsetWithMicroSeconds(timeout_usec);
DWORD milliseconds = time_value.milliseconds();
- result = ::WaitForMultipleObjects(llvm::array_lengthof(m_event_handles), m_event_handles, FALSE, milliseconds);
+ DWORD wait_result = ::WaitForMultipleObjects(llvm::array_lengthof(m_event_handles), m_event_handles, FALSE, milliseconds);
// All of the events are manual reset events, so make sure we reset them to non-signalled.
- switch (result)
+ switch (wait_result)
{
case WAIT_OBJECT_0 + kBytesAvailableEvent:
break;
OpenPOWER on IntegriCloud