Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2342)

Unified Diff: base/id_map_unittest.cc

Issue 7232025: Clean up of -Wunused-but-set-variable (gcc 4.6) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « AUTHORS ('k') | base/system_monitor/system_monitor_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/id_map_unittest.cc
diff --git a/base/id_map_unittest.cc b/base/id_map_unittest.cc
index 54475b678919c968a2dca5db28170711d7ef7ac4..bf82eb686e85e7286eecb984c38dcceeae9a2593 100644
--- a/base/id_map_unittest.cc
+++ b/base/id_map_unittest.cc
@@ -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]);
}
}
« no previous file with comments | « AUTHORS ('k') | base/system_monitor/system_monitor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698