0

Clean up of -Wunused-but-set-variable (gcc 4.6)

BUG=80071
TEST=base_unittests


Review URL: http://codereview.chromium.org/7232025

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90489 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
pph34r@gmail.com
2011-06-25 04:33:18 +00:00
parent 18c170d8b8
commit 9f7785d879
3 changed files with 4 additions and 7 deletions

@ -114,3 +114,4 @@ Matt Arpidone <mma.public@gmail.com>
ruben <chromium@hybridsource.org>
NVIDIA Corporation <*@nvidia.com>
Torsten Kurbad <google@tk-webart.de>
Max Perepelitsyn <pph34r@gmail.com>

@ -1,4 +1,4 @@
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@ -165,11 +165,9 @@ TEST_F(IDMapTest, OwningPointersDeletesThemOnDestruct) {
int external_del_count = 0;
DestructorCounter* external_obj[kCount];
int map_external_ids[kCount];
int owned_del_count = 0;
DestructorCounter* owned_obj[kCount];
int map_owned_ids[kCount];
{
IDMap<DestructorCounter> map_external;
@ -177,10 +175,10 @@ TEST_F(IDMapTest, OwningPointersDeletesThemOnDestruct) {
for (int i = 0; i < kCount; ++i) {
external_obj[i] = new DestructorCounter(&external_del_count);
map_external_ids[i] = map_external.Add(external_obj[i]);
map_external.Add(external_obj[i]);
owned_obj[i] = new DestructorCounter(&owned_del_count);
map_owned_ids[i] = map_owned.Add(owned_obj[i]);
map_owned.Add(owned_obj[i]);
}
}

@ -47,8 +47,6 @@ TEST(SystemMonitor, PowerNotifications) {
// Initialize a message loop for this to run on.
MessageLoop loop;
// Initialize time() since it registers as a SystemMonitor observer.
base::Time now = base::Time::Now();
SystemMonitor system_monitor;
PowerTest test[kObservers];