From: Ed Maste Date: Tue, 8 Dec 2015 20:50:35 +0000 (+0000) Subject: Remove default case in switch which covers all enumeration values X-Git-Tag: llvmorg-3.8.0-rc1~2454 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3ad0f1e2748069b7811f5f2b3f1896e7f20dc60;p=platform%2Fupstream%2Fllvm.git Remove default case in switch which covers all enumeration values This also conveniently eliminates another warning from the unintentional use of a trigraph: warning: trigraph converted to '[' character [-Wtrigraphs] default: printf("???(%u)", type); ^ llvm-svn: 255049 --- diff --git a/lldb/source/Symbol/Type.cpp b/lldb/source/Symbol/Type.cpp index cd0cb83..8061e01 100644 --- a/lldb/source/Symbol/Type.cpp +++ b/lldb/source/Symbol/Type.cpp @@ -56,7 +56,6 @@ CompilerContext::Dump() const case CompilerContextKind::Variable: printf("Variable"); break; case CompilerContextKind::Enumeration: printf("Enumeration"); break; case CompilerContextKind::Typedef: printf("Typedef"); break; - default: printf("???(%u)", type); } printf("(\"%s\")\n", name.GetCString()); }