Fix some warnings in the Windows build.
authorZachary Turner <zturner@google.com>
Wed, 16 Jul 2014 20:28:24 +0000 (20:28 +0000)
committerZachary Turner <zturner@google.com>
Wed, 16 Jul 2014 20:28:24 +0000 (20:28 +0000)
llvm-svn: 213194

lldb/source/API/SBTarget.cpp
lldb/source/Commands/CommandObjectThread.cpp
lldb/source/Plugins/Platform/Kalimba/PlatformKalimba.cpp

index 5826ee6..3d5828c 100644 (file)
@@ -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)
                     {
index 86c99b5..c58e9e8 100644 (file)
@@ -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.");
                 }
index 9bd75c5..31928c4 100644 (file)
@@ -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;