[Lldb-commits] [lldb] r280933 - Fix -Wcovered-switch-default warning in AppleObjCRuntimeV2.cpp
Ed Maste via lldb-commits
lldb-commits at lists.llvm.org
Thu Sep 8 06:17:43 PDT 2016
Author: emaste
Date: Thu Sep 8 08:17:42 2016
New Revision: 280933
URL: http://llvm.org/viewvc/llvm-project?rev=280933&view=rev
Log:
Fix -Wcovered-switch-default warning in AppleObjCRuntimeV2.cpp
The switch coveres all possible values. If a new one is added in the
future the compiler will start warning, providing a notification that
the switch needs updating.
Modified:
lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
Modified: lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp?rev=280933&r1=280932&r2=280933&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp (original)
+++ lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp Thu Sep 8 08:17:42 2016
@@ -1906,8 +1906,6 @@ void AppleObjCRuntimeV2::WarnIfNoClasses
"reduce the quality of type information available.\n");
m_noclasses_warning_emitted = true;
break;
- default:
- break;
}
}
}
More information about the lldb-commits
mailing list