Makes gtest compile clean with MSVC's warning 4100 (unused formal parameter) enabled.

This commit is contained in:
zhanyong.wan
2009-09-17 05:04:08 +00:00
parent f07dc6b1b1
commit 12d740faef
5 changed files with 19 additions and 21 deletions

View File

@@ -4134,7 +4134,8 @@ TestInfoImpl::~TestInfoImpl() {
// For example, if Foo() calls Bar(), which in turn calls
// GetCurrentOsStackTraceExceptTop(..., 1), Foo() will be included in
// the trace but Bar() and GetCurrentOsStackTraceExceptTop() won't.
String GetCurrentOsStackTraceExceptTop(UnitTest* unit_test, int skip_count) {
String GetCurrentOsStackTraceExceptTop(UnitTest* /*unit_test*/,
int skip_count) {
// We pass skip_count + 1 to skip this wrapper function in addition
// to what the user really wants to skip.
return GetUnitTestImpl()->CurrentOsStackTraceExceptTop(skip_count + 1);