]> granicus.if.org Git - clang/commitdiff
Squash -Wcovered-switch-default wairning
authorSam McCall <sam.mccall@gmail.com>
Tue, 16 Jan 2018 12:54:28 +0000 (12:54 +0000)
committerSam McCall <sam.mccall@gmail.com>
Tue, 16 Jan 2018 12:54:28 +0000 (12:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322549 91177308-0d34-0410-b5e6-96231b3b80d8

tools/c-index-test/c-index-test.c

index 236813498b9b89119c3a367ebcbf6af086b597d4..0b66eff078985f56f4dba0118b5424c0965af81b 100644 (file)
@@ -729,8 +729,7 @@ static CXString CursorToText(CXCursor Cursor) {
     return clang_getCursorSpelling(Cursor);
   case DisplayType_DisplayName:
     return clang_getCursorDisplayName(Cursor);
-  case DisplayType_Pretty:
-  default: {
+  case DisplayType_Pretty: {
     CXString text;
     CXPrintingPolicy Policy = clang_getCursorPrintingPolicy(Cursor);
     ModifyPrintingPolicyAccordingToEnv(Policy);