forked from OSchip/llvm-project
Remove unreachable defaults from gtest.
This will ensure LLVM and Clang build -Wswitch-enum-redundant-default (an on-by-default warning I'm about to add to Clang). llvm-svn: 148639
This commit is contained in:
parent
eb3f454a67
commit
fb6ecdf27c
|
@ -527,7 +527,6 @@ bool DeathTestImpl::Passed(bool status_ok) {
|
|||
}
|
||||
break;
|
||||
case IN_PROGRESS:
|
||||
default:
|
||||
GTEST_LOG_(FATAL)
|
||||
<< "DeathTest::Passed somehow called before conclusion of test";
|
||||
}
|
||||
|
|
|
@ -2480,8 +2480,6 @@ static const char * TestPartResultTypeToString(TestPartResult::Type type) {
|
|||
#else
|
||||
return "Failure\n";
|
||||
#endif
|
||||
default:
|
||||
return "Unknown result type";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -207,8 +207,6 @@ GTEST_API_ bool ExitedUnsuccessfully(int exit_status);
|
|||
gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE); \
|
||||
break; \
|
||||
} \
|
||||
default: \
|
||||
break; \
|
||||
} \
|
||||
} \
|
||||
} else \
|
||||
|
|
Loading…
Reference in New Issue