[Lldb-commits] [lldb] bc056b3 - [lldb] Suppress MSVC warning C4065
Tatyana Krasnukha via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 5 02:11:30 PDT 2020
Author: Tatyana Krasnukha
Date: 2020-08-05T11:59:48+03:00
New Revision: bc056b3aa7130923ab9ad0505c5a8d65ea721e39
URL: https://github.com/llvm/llvm-project/commit/bc056b3aa7130923ab9ad0505c5a8d65ea721e39
DIFF: https://github.com/llvm/llvm-project/commit/bc056b3aa7130923ab9ad0505c5a8d65ea721e39.diff
LOG: [lldb] Suppress MSVC warning C4065
MSVC reports "switch statement contains 'default' but no 'case' labels". Suppress,
as this was intended behavior.
Added:
Modified:
lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleBridge.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleBridge.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleBridge.cpp
index eb25a061de4e..1cb8b9c37031 100644
--- a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleBridge.cpp
+++ b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleBridge.cpp
@@ -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:
More information about the lldb-commits
mailing list