debugserver: fix a few -Wcovered-swift-default warnings

Remove a couple of `default` cases from switches which are covered.  This is
beneficial since it would allow the compiler to indicate when a new enum value
is added and the switch is not updated.  Fixes some warnings from clang.  NFC.

llvm-svn: 268756
This commit is contained in:
Saleem Abdulrasool 2016-05-06 17:33:01 +00:00
parent bd7ecf4b02
commit 2bb818880b
2 changed files with 0 additions and 2 deletions

View File

@ -362,7 +362,6 @@ DNBDataRef::Dump
// the snprintf call each time through this loop // the snprintf call each time through this loop
switch (type) switch (type)
{ {
default:
case TypeUInt8: str_offset += snprintf(str + str_offset, sizeof(str) - str_offset, format ? format : " %2.2x", Get8(&offset)); break; case TypeUInt8: str_offset += snprintf(str + str_offset, sizeof(str) - str_offset, format ? format : " %2.2x", Get8(&offset)); break;
case TypeChar: case TypeChar:
{ {

View File

@ -1026,7 +1026,6 @@ RNBRemote::ThreadFunctionReadRemoteData(void *arg)
case rnb_success: case rnb_success:
break; break;
default:
case rnb_err: case rnb_err:
DNBLogThreadedIf (LOG_RNB_REMOTE, "RNBSocket::GetCommData returned error %u", err); DNBLogThreadedIf (LOG_RNB_REMOTE, "RNBSocket::GetCommData returned error %u", err);
done = true; done = true;