[Lldb-commits] [lldb] r255049 - Remove default case in switch which covers all enumeration values
Ed Maste via lldb-commits
lldb-commits at lists.llvm.org
Tue Dec 8 12:50:35 PST 2015
Author: emaste
Date: Tue Dec 8 14:50:35 2015
New Revision: 255049
URL: http://llvm.org/viewvc/llvm-project?rev=255049&view=rev
Log:
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);
^
Modified:
lldb/trunk/source/Symbol/Type.cpp
Modified: lldb/trunk/source/Symbol/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/Type.cpp?rev=255049&r1=255048&r2=255049&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/Type.cpp (original)
+++ lldb/trunk/source/Symbol/Type.cpp Tue Dec 8 14:50:35 2015
@@ -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());
}
More information about the lldb-commits
mailing list