diff options
author | 2014-11-03 21:36:10 -0800 | |
---|---|---|
committer | 2014-11-04 18:40:08 -0800 | |
commit | 277ccbd200ea43590dfc06a93ae184a765327ad0 (patch) | |
tree | d89712e93da5fb2748989353c9ee071102cf3f33 /runtime/gc/heap_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 'runtime/gc/heap_test.cc')
-rw-r--r-- | runtime/gc/heap_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/gc/heap_test.cc b/runtime/gc/heap_test.cc index 3106b4c913..73196b20a2 100644 --- a/runtime/gc/heap_test.cc +++ b/runtime/gc/heap_test.cc @@ -48,8 +48,8 @@ TEST_F(HeapTest, GarbageCollectClassLinkerInit) { Handle<mirror::Class> c( hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;"))); for (size_t i = 0; i < 1024; ++i) { - StackHandleScope<1> hs(soa.Self()); - Handle<mirror::ObjectArray<mirror::Object>> array(hs.NewHandle( + StackHandleScope<1> hs2(soa.Self()); + Handle<mirror::ObjectArray<mirror::Object>> array(hs2.NewHandle( mirror::ObjectArray<mirror::Object>::Alloc(soa.Self(), c.Get(), 2048))); for (size_t j = 0; j < 2048; ++j) { mirror::String* string = mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello, world!"); |