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 --- compiler/optimizing/codegen_test.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'compiler/optimizing/codegen_test.cc') diff --git a/compiler/optimizing/codegen_test.cc b/compiler/optimizing/codegen_test.cc index 803a09b733..68fcb25036 100644 --- a/compiler/optimizing/codegen_test.cc +++ b/compiler/optimizing/codegen_test.cc @@ -373,9 +373,9 @@ TEST(CodegenTest, NonMaterializedCondition) { PrepareForRegisterAllocation(graph).Run(); ASSERT_FALSE(equal->NeedsMaterialization()); - auto hook_before_codegen = [](HGraph* graph) { - HBasicBlock* block = graph->GetEntryBlock()->GetSuccessors().Get(0); - HParallelMove* move = new (graph->GetArena()) HParallelMove(graph->GetArena()); + auto hook_before_codegen = [](HGraph* graph_in) { + HBasicBlock* block = graph_in->GetEntryBlock()->GetSuccessors().Get(0); + HParallelMove* move = new (graph_in->GetArena()) HParallelMove(graph_in->GetArena()); block->InsertInstructionBefore(move, block->GetLastInstruction()); }; @@ -463,9 +463,9 @@ TEST(CodegenTest, MaterializedCondition1) { HReturn ret(&cmp_lt); code_block->AddInstruction(&ret); - auto hook_before_codegen = [](HGraph* graph) { - HBasicBlock* block = graph->GetEntryBlock()->GetSuccessors().Get(0); - HParallelMove* move = new (graph->GetArena()) HParallelMove(graph->GetArena()); + auto hook_before_codegen = [](HGraph* graph_in) { + HBasicBlock* block = graph_in->GetEntryBlock()->GetSuccessors().Get(0); + HParallelMove* move = new (graph_in->GetArena()) HParallelMove(graph_in->GetArena()); block->InsertInstructionBefore(move, block->GetLastInstruction()); }; @@ -533,9 +533,9 @@ TEST(CodegenTest, MaterializedCondition2) { HReturn ret_ge(&cst_ge); if_false_block->AddInstruction(&ret_ge); - auto hook_before_codegen = [](HGraph* graph) { - HBasicBlock* block = graph->GetEntryBlock()->GetSuccessors().Get(0); - HParallelMove* move = new (graph->GetArena()) HParallelMove(graph->GetArena()); + auto hook_before_codegen = [](HGraph* graph_in) { + HBasicBlock* block = graph_in->GetEntryBlock()->GetSuccessors().Get(0); + HParallelMove* move = new (graph_in->GetArena()) HParallelMove(graph_in->GetArena()); block->InsertInstructionBefore(move, block->GetLastInstruction()); }; -- cgit v1.2.3-59-g8ed1b