summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandObject.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-03-23 21:03:44 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-03-23 21:03:44 +0000
commit74af4bc134f079cd0868fe7bb357a862de1a8107 (patch)
tree234512fcb1acb70693f3a2db9667ba3800a84c38 /lldb/source/Interpreter/CommandObject.cpp
parent13acae040c5a9df749f009694aae0e88349d7258 (diff)
downloadbcm5719-llvm-74af4bc134f079cd0868fe7bb357a862de1a8107.tar.gz
bcm5719-llvm-74af4bc134f079cd0868fe7bb357a862de1a8107.zip
Silence clang warnings.
llvm-svn: 128167
Diffstat (limited to 'lldb/source/Interpreter/CommandObject.cpp')
-rw-r--r--lldb/source/Interpreter/CommandObject.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp
index 7cdf36dcfe0..dac5b4549d4 100644
--- a/lldb/source/Interpreter/CommandObject.cpp
+++ b/lldb/source/Interpreter/CommandObject.cpp
@@ -520,6 +520,10 @@ CommandObject::GetFormattedCommandArguments (Stream &str)
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 @@ CommandObject::GetFormattedCommandArguments (Stream &str)
}
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;
OpenPOWER on IntegriCloud