]> granicus.if.org Git - clang/commitdiff
Drop unneccessary default case from switch introduced in r219809
authorKaelyn Takata <rikka@google.com>
Wed, 15 Oct 2014 17:46:18 +0000 (17:46 +0000)
committerKaelyn Takata <rikka@google.com>
Wed, 15 Oct 2014 17:46:18 +0000 (17:46 +0000)
This silences:
../tools/clang/tools/libclang/CIndex.cpp:6451:3: warning: default label
in switch which covers all enumeration values [-Wcovered-switch-default]

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219818 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/CIndex.cpp

index 8b829c7d50c3799871d6e3a95a60824c3dba3829..a16fb7f9d004c763764e36dbbc8e4f62f255e811 100644 (file)
@@ -6448,8 +6448,6 @@ enum CX_StorageClass clang_Cursor_getStorageClass(CXCursor C) {
     return CX_SC_Auto;
   case SC_Register:
     return CX_SC_Register;
-  default:
-    return CX_SC_Invalid;
   }
 }