Fix some warnings due to missing returns

This commit is contained in:
Jacob Dufault 2018-03-21 21:04:41 -07:00 committed by Fangrui Song
parent 39fbd1a2d5
commit ee87d6cb97

View File

@ -150,6 +150,8 @@ lsSymbolKind GetSymbolKind(CXIdxEntityKind kind) {
case CXIdxEntity_CXXInterface:
return lsSymbolKind::Struct;
}
return lsSymbolKind::Unknown;
}
StorageClass GetStorageClass(CX_StorageClass storage) {
@ -170,6 +172,8 @@ StorageClass GetStorageClass(CX_StorageClass storage) {
case CX_SC_Register:
return StorageClass::Register;
}
return StorageClass::None;
}
// Caches all instances of constructors, regardless if they are indexed or not.