diff options
author | Andreas Gampe <agampe@google.com> | 2014-11-03 21:36:10 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2014-11-04 18:40:08 -0800 |
commit | 277ccbd200ea43590dfc06a93ae184a765327ad0 (patch) | |
tree | d89712e93da5fb2748989353c9ee071102cf3f33 /compiler/driver/compiler_driver_test.cc | |
parent | ad17d41841ba1fb177fb0bf175ec0e9f5e1412b3 (diff) |
ART: More warnings
Enable -Wno-conversion-null, -Wredundant-decls and -Wshadow in general,
and -Wunused-but-set-parameter for GCC builds.
Change-Id: I81bbdd762213444673c65d85edae594a523836e5
Diffstat (limited to 'compiler/driver/compiler_driver_test.cc')
-rw-r--r-- | compiler/driver/compiler_driver_test.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/driver/compiler_driver_test.cc b/compiler/driver/compiler_driver_test.cc index 9ae9bd400a..5a0ec2fa57 100644 --- a/compiler/driver/compiler_driver_test.cc +++ b/compiler/driver/compiler_driver_test.cc @@ -86,11 +86,11 @@ class CompilerDriverTest : public CommonCompilerTest { hs.NewHandle(soa.Decode<mirror::ClassLoader*>(class_loader))); mirror::Class* c = class_linker->FindClass(soa.Self(), descriptor, loader); CHECK(c != NULL); - for (size_t i = 0; i < c->NumDirectMethods(); i++) { - MakeExecutable(c->GetDirectMethod(i)); + for (size_t j = 0; j < c->NumDirectMethods(); j++) { + MakeExecutable(c->GetDirectMethod(j)); } - for (size_t i = 0; i < c->NumVirtualMethods(); i++) { - MakeExecutable(c->GetVirtualMethod(i)); + for (size_t j = 0; j < c->NumVirtualMethods(); j++) { + MakeExecutable(c->GetVirtualMethod(j)); } } } |