[lldb] Suppress MSVC warning C4065
authorTatyana Krasnukha <tatyana@synopsys.com>
Tue, 4 Aug 2020 17:53:30 +0000 (20:53 +0300)
committerTatyana Krasnukha <tatyana@synopsys.com>
Wed, 5 Aug 2020 08:59:48 +0000 (11:59 +0300)
MSVC reports "switch statement contains 'default' but no 'case' labels". Suppress,
as this was intended behavior.

lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleBridge.cpp

index eb25a06..1cb8b9c 100644 (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: