mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-16 20:40:16 +00:00
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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148639 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8608cc9473
commit
a36dda2b0e
utils/unittest/googletest
@ -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…
x
Reference in New Issue
Block a user