[lldb] Suppress MSVC warning C4065

MSVC reports "switch statement contains 'default' but no 'case' labels". Suppress,
as this was intended behavior.
This commit is contained in:
Tatyana Krasnukha 2020-08-04 20:53:30 +03:00
parent 75012a8044
commit bc056b3aa7
1 changed files with 10 additions and 2 deletions

View File

@ -96,14 +96,22 @@ PlatformSP PlatformRemoteAppleBridge::CreateInstance(bool force,
break;
}
if (create) {
// Suppress warning "switch statement contains 'default' but no 'case' labels".
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4065)
#endif
switch (triple.getOS()) {
// NEED_BRIDGEOS_TRIPLE case llvm::Triple::BridgeOS:
break;
// NEED_BRIDGEOS_TRIPLE case llvm::Triple::BridgeOS:
// break;
default:
create = false;
break;
}
#ifdef _MSC_VER
#pragma warning(pop)
#endif
}
} break;
default: