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:
1
AUTHORS
1
AUTHORS
@ -114,3 +114,4 @@ Matt Arpidone <mma.public@gmail.com>
|
|||||||
ruben <chromium@hybridsource.org>
|
ruben <chromium@hybridsource.org>
|
||||||
NVIDIA Corporation <*@nvidia.com>
|
NVIDIA Corporation <*@nvidia.com>
|
||||||
Torsten Kurbad <google@tk-webart.de>
|
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
|
// Use of this source code is governed by a BSD-style license that can be
|
||||||
// found in the LICENSE file.
|
// found in the LICENSE file.
|
||||||
|
|
||||||
@ -165,11 +165,9 @@ TEST_F(IDMapTest, OwningPointersDeletesThemOnDestruct) {
|
|||||||
|
|
||||||
int external_del_count = 0;
|
int external_del_count = 0;
|
||||||
DestructorCounter* external_obj[kCount];
|
DestructorCounter* external_obj[kCount];
|
||||||
int map_external_ids[kCount];
|
|
||||||
|
|
||||||
int owned_del_count = 0;
|
int owned_del_count = 0;
|
||||||
DestructorCounter* owned_obj[kCount];
|
DestructorCounter* owned_obj[kCount];
|
||||||
int map_owned_ids[kCount];
|
|
||||||
|
|
||||||
{
|
{
|
||||||
IDMap<DestructorCounter> map_external;
|
IDMap<DestructorCounter> map_external;
|
||||||
@ -177,10 +175,10 @@ TEST_F(IDMapTest, OwningPointersDeletesThemOnDestruct) {
|
|||||||
|
|
||||||
for (int i = 0; i < kCount; ++i) {
|
for (int i = 0; i < kCount; ++i) {
|
||||||
external_obj[i] = new DestructorCounter(&external_del_count);
|
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);
|
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.
|
// Initialize a message loop for this to run on.
|
||||||
MessageLoop loop;
|
MessageLoop loop;
|
||||||
// Initialize time() since it registers as a SystemMonitor observer.
|
|
||||||
base::Time now = base::Time::Now();
|
|
||||||
|
|
||||||
SystemMonitor system_monitor;
|
SystemMonitor system_monitor;
|
||||||
PowerTest test[kObservers];
|
PowerTest test[kObservers];
|
||||||
|
Reference in New Issue
Block a user