[Lldb-commits] [lldb] r113438 - in /lldb/trunk: include/lldb/Breakpoint/BreakpointOptions.h include/lldb/Interpreter/Options.h source/API/SBDebugger.cpp source/Host/macosx/Symbols.cpp

Chris Lattner sabre at nondot.org
Wed Sep 8 16:01:14 PDT 2010


Author: lattner
Date: Wed Sep  8 18:01:14 2010
New Revision: 113438

URL: http://llvm.org/viewvc/llvm-project?rev=113438&view=rev
Log:
eliminate some clang warnings.

Modified:
    lldb/trunk/include/lldb/Breakpoint/BreakpointOptions.h
    lldb/trunk/include/lldb/Interpreter/Options.h
    lldb/trunk/source/API/SBDebugger.cpp
    lldb/trunk/source/Host/macosx/Symbols.cpp

Modified: lldb/trunk/include/lldb/Breakpoint/BreakpointOptions.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Breakpoint/BreakpointOptions.h?rev=113438&r1=113437&r2=113438&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Breakpoint/BreakpointOptions.h (original)
+++ lldb/trunk/include/lldb/Breakpoint/BreakpointOptions.h Wed Sep  8 18:01:14 2010
@@ -84,7 +84,7 @@
     bool InvokeCallback (StoppointCallbackContext *context, lldb::user_id_t break_id, lldb::user_id_t break_loc_id);
     bool IsCallbackSynchronous () {
         return m_callback_is_synchronous;
-    };
+    }
     Baton *GetBaton ();
     const Baton *GetBaton () const;
     void ClearCallback ();

Modified: lldb/trunk/include/lldb/Interpreter/Options.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Interpreter/Options.h?rev=113438&r1=113437&r2=113438&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Interpreter/Options.h (original)
+++ lldb/trunk/include/lldb/Interpreter/Options.h Wed Sep  8 18:01:14 2010
@@ -165,7 +165,7 @@
     // this class.
 
     virtual const lldb::OptionDefinition*
-    GetDefinitions () { return NULL; };
+    GetDefinitions () { return NULL; }
 
     virtual void
     ResetOptionValues ();

Modified: lldb/trunk/source/API/SBDebugger.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBDebugger.cpp?rev=113438&r1=113437&r2=113438&view=diff
==============================================================================
--- lldb/trunk/source/API/SBDebugger.cpp (original)
+++ lldb/trunk/source/API/SBDebugger.cpp Wed Sep  8 18:01:14 2010
@@ -585,7 +585,7 @@
 
     lldb::SettableVariableType var_type;
     StringList value = root_settings_controller->GetVariable (var_name, var_type);
-    for (int i = 0; i < value.GetSize(); ++i)
+    for (unsigned i = 0; i != value.GetSize(); ++i)
         ret_value.AppendString (value.GetStringAtIndex(i));
 
     return ret_value;

Modified: lldb/trunk/source/Host/macosx/Symbols.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/macosx/Symbols.cpp?rev=113438&r1=113437&r2=113438&view=diff
==============================================================================
--- lldb/trunk/source/Host/macosx/Symbols.cpp (original)
+++ lldb/trunk/source/Host/macosx/Symbols.cpp Wed Sep  8 18:01:14 2010
@@ -25,6 +25,7 @@
 #include "lldb/Core/UUID.h"
 
 #include "Host/macosx/cfcpp/CFCReleaser.h"
+#include "mach/machine.h"
 
 using namespace lldb;
 using namespace lldb_private;





More information about the lldb-commits mailing list