[Lldb-commits] [lldb] r223499 - Fix a few default label in switch which covers all
Eric Christopher
echristo at gmail.com
Fri Dec 5 11:09:02 PST 2014
Author: echristo
Date: Fri Dec 5 13:09:02 2014
New Revision: 223499
URL: http://llvm.org/viewvc/llvm-project?rev=223499&view=rev
Log:
Fix a few default label in switch which covers all
enumeration values [-Werror,-Wcovered-switch-default]
warnings.
Modified:
lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
Modified: lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp?rev=223499&r1=223498&r2=223499&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp (original)
+++ lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp Fri Dec 5 13:09:02 2014
@@ -1250,8 +1250,6 @@ PlatformDarwin::SDKSupportsModules (SDKT
{
switch (sdk_type)
{
- default:
- return false;
case SDKType::MacOSX:
if (major > 10 || (major == 10 && minor >= 10))
return true;
@@ -1366,8 +1364,6 @@ PlatformDarwin::GetSDKDirectoryForModule
{
switch (sdk_type)
{
- default:
- return FileSpec();
case SDKType::MacOSX:
case SDKType::iPhoneSimulator:
case SDKType::iPhoneOS:
@@ -1380,8 +1376,6 @@ PlatformDarwin::GetSDKDirectoryForModule
switch (sdk_type)
{
- default:
- return FileSpec();
case SDKType::MacOSX:
sdks_spec.AppendPathComponent("MacOSX.platform");
break;
More information about the lldb-commits
mailing list