[Lldb-commits] [lldb] r128167 - /lldb/trunk/source/Interpreter/CommandObject.cpp

Johnny Chen johnny.chen at apple.com
Wed Mar 23 14:03:44 PDT 2011


Author: johnny
Date: Wed Mar 23 16:03:44 2011
New Revision: 128167

URL: http://llvm.org/viewvc/llvm-project?rev=128167&view=rev
Log:
Silence clang warnings.

Modified:
    lldb/trunk/source/Interpreter/CommandObject.cpp

Modified: lldb/trunk/source/Interpreter/CommandObject.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandObject.cpp?rev=128167&r1=128166&r2=128167&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandObject.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandObject.cpp Wed Mar 23 16:03:44 2011
@@ -520,6 +520,10 @@
             const char *second_name = GetArgumentName (arg_entry[1].arg_type);
             switch (arg_entry[0].arg_repetition)
             {
+                default:
+                    // Silence clang warnings.
+                    // Only pair enums are reachable.
+                    break;
                 case eArgRepeatPairPlain:
                     str.Printf ("<%s> <%s>", first_name, second_name);
                     break;
@@ -551,6 +555,10 @@
             }
             switch (arg_entry[0].arg_repetition)
             {
+                default:
+                    // Silence clang warnings.
+                    // Only non-pair enums are reachable.
+                    break;
                 case eArgRepeatPlain:
                     str.Printf ("<%s>", names.GetData());
                     break;





More information about the lldb-commits mailing list