From 277ccbd200ea43590dfc06a93ae184a765327ad0 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Mon, 3 Nov 2014 21:36:10 -0800 Subject: ART: More warnings Enable -Wno-conversion-null, -Wredundant-decls and -Wshadow in general, and -Wunused-but-set-parameter for GCC builds. Change-Id: I81bbdd762213444673c65d85edae594a523836e5 --- runtime/utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/utils.cc') diff --git a/runtime/utils.cc b/runtime/utils.cc index 9c94f6cb0..11c610bf7 100644 --- a/runtime/utils.cc +++ b/runtime/utils.cc @@ -1109,8 +1109,8 @@ std::string GetSchedulerGroupName(pid_t tid) { Split(cgroup_lines[i], ':', &cgroup_fields); std::vector cgroups; Split(cgroup_fields[1], ',', &cgroups); - for (size_t i = 0; i < cgroups.size(); ++i) { - if (cgroups[i] == "cpu") { + for (size_t j = 0; j < cgroups.size(); ++j) { + if (cgroups[j] == "cpu") { return cgroup_fields[2].substr(1); // Skip the leading slash. } } -- cgit v1.2.3