[lldb-dev] [PATCH] Fixing a warning

William Lynch wlynch at wlynch.cx
Tue Jul 20 07:28:20 PDT 2010


Hi, I've come across a few more of these Constructor warnings. Here are the
related fixes:

Index:
source/Plugins/DynamicLoader/MacOSX-DYLD/ThreadPlanStepThroughObjCTrampoline.cpp
===================================================================
---
source/Plugins/DynamicLoader/MacOSX-DYLD/ThreadPlanStepThroughObjCTrampoline.cpp
   (revision 108835)
+++
source/Plugins/DynamicLoader/MacOSX-DYLD/ThreadPlanStepThroughObjCTrampoline.cpp
   (working copy)
@@ -34,13 +34,13 @@
         lldb::addr_t sel_ptr,
         bool stop_others) :
     ThreadPlan (ThreadPlan::eKindGeneric, "MacOSX Step through ObjC
Trampoline", thread, eVoteNoOpinion, eVoteNoOpinion),
+    m_args_addr (args_addr),
+    m_stop_others (stop_others),
     m_objc_trampoline_handler (trampoline_handler),
     m_impl_function
(trampoline_handler->GetLookupImplementationWrapperFunction()),
-    m_args_addr (args_addr),
     m_object_ptr (object_ptr),
     m_class_ptr (class_ptr),
-    m_sel_ptr (sel_ptr),
-    m_stop_others (stop_others)
+    m_sel_ptr (sel_ptr)
 {

 }
Index: source/Interpreter/CommandObjectRegexCommand.cpp
===================================================================
--- source/Interpreter/CommandObjectRegexCommand.cpp    (revision 108835)
+++ source/Interpreter/CommandObjectRegexCommand.cpp    (working copy)
@@ -30,8 +30,8 @@
     uint32_t max_matches
 ) :
     CommandObject (name, help, syntax),
-    m_entries(),
-    m_max_matches (max_matches)
+    m_max_matches (max_matches),
+    m_entries ()
 {
 }

Index: source/Symbol/TypeList.cpp
===================================================================
--- source/Symbol/TypeList.cpp  (revision 108835)
+++ source/Symbol/TypeList.cpp  (working copy)
@@ -40,8 +40,8 @@
 using namespace clang;

 TypeList::TypeList(const char *target_triple) :
-    m_types(),
-    m_ast(target_triple)
+    m_ast (target_triple),
+    m_types ()
 {
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20100720/a00c6db7/attachment.html>


More information about the lldb-dev mailing list