forked from OSchip/llvm-project
[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:
parent
75012a8044
commit
bc056b3aa7
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue