From 40411165791426831f80c4c0d7ab861653ec4a7f Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Wed, 16 Jul 2014 20:28:24 +0000 Subject: [PATCH] Fix some warnings in the Windows build. llvm-svn: 213194 --- lldb/source/API/SBTarget.cpp | 2 +- lldb/source/Commands/CommandObjectThread.cpp | 2 +- lldb/source/Plugins/Platform/Kalimba/PlatformKalimba.cpp | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp index 5826ee6..3d5828c 100644 --- a/lldb/source/API/SBTarget.cpp +++ b/lldb/source/API/SBTarget.cpp @@ -2565,7 +2565,7 @@ SBTarget::ClearModuleLoadAddress (lldb::SBModule module) { SectionSP section_sp (section_list->GetSectionAtIndex(sect_idx)); if (section_sp) - changed |= target_sp->SetSectionUnloaded (section_sp) > 0; + changed |= target_sp->SetSectionUnloaded (section_sp); } if (changed) { diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp index 86c99b5..c58e9e8 100644 --- a/lldb/source/Commands/CommandObjectThread.cpp +++ b/lldb/source/Commands/CommandObjectThread.cpp @@ -616,7 +616,7 @@ protected: if (m_options.m_step_count > 1) { - if (new_plan_sp->SetIterationCount(m_options.m_step_count) != m_options.m_step_count) + if (new_plan_sp->SetIterationCount(m_options.m_step_count)) { result.AppendWarning ("step operation does not support iteration count."); } diff --git a/lldb/source/Plugins/Platform/Kalimba/PlatformKalimba.cpp b/lldb/source/Plugins/Platform/Kalimba/PlatformKalimba.cpp index 9bd75c5..31928c4 100644 --- a/lldb/source/Plugins/Platform/Kalimba/PlatformKalimba.cpp +++ b/lldb/source/Plugins/Platform/Kalimba/PlatformKalimba.cpp @@ -202,8 +202,8 @@ PlatformKalimba::ResolveExecutable (const FileSpec &exe_file, } Error -PlatformKalimba::GetFileWithUUID (const FileSpec &/*platform_file*/, - const UUID */*uuid_ptr*/, FileSpec &/*local_file*/) +PlatformKalimba::GetFileWithUUID (const FileSpec & /*platform_file*/, + const UUID * /*uuid_ptr*/, FileSpec & /*local_file*/) { return Error(); } @@ -262,8 +262,8 @@ PlatformKalimba::GetStatus (Stream &strm) } size_t -PlatformKalimba::GetSoftwareBreakpointTrapOpcode (Target &/*target*/, - BreakpointSite */*bp_site*/) +PlatformKalimba::GetSoftwareBreakpointTrapOpcode (Target & /*target*/, + BreakpointSite * /*bp_site*/) { // the target hardware does not support software breakpoints return 0; -- 2.7.4