From f45d61c0866461c9476f17644b27dc0664d507c5 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Wed, 7 Jun 2017 10:29:33 -0700 Subject: ART: Fix or disable some tidy warnings. Add a strlcpy shim for the host, so we can use strlcpy instead of strcpy everywhere. Fixed warnings include unused-decls, (some) unreachable code, use after std::move, string char append, leaks, (some) excessive padding. Disable some warnings we cannot or do not want to avoid. Bug: 32619234 Test: m Test: m test-art-host Change-Id: Ie191985eebb160d94b988b41735d4f0a1fa1b54e --- compiler/optimizing/loop_optimization.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/optimizing/loop_optimization.cc') diff --git a/compiler/optimizing/loop_optimization.cc b/compiler/optimizing/loop_optimization.cc index c3aa976d49..68ee272d25 100644 --- a/compiler/optimizing/loop_optimization.cc +++ b/compiler/optimizing/loop_optimization.cc @@ -499,6 +499,7 @@ void HLoopOptimization::OptimizeInnerLoop(LoopNode* node) { body = it.Current(); } } + CHECK(body != nullptr); // Ensure there is only a single exit point. if (header->GetSuccessors().size() != 2) { return; -- cgit v1.2.3-59-g8ed1b