forked from OSchip/llvm-project
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:
parent
bd7ecf4b02
commit
2bb818880b
|
@ -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:
|
||||||
{
|
{
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue