summaryrefslogtreecommitdiff
path: root/runtime/class_loader_context.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2018-10-16 11:32:38 -0700
committer Andreas Gampe <agampe@google.com> 2018-10-18 08:20:09 -0700
commitafaf7f8198fe5ffc054278da6800f81dd83f272c (patch)
tree3ebdec9fca813351d178709743121fa66815a7a0 /runtime/class_loader_context.cc
parent6ca8ec7809f87ccac8d9d66d267f2379bdfdfe66 (diff)
ART: Enable bugprone-unused-return-value
Enable bugprone-unused-return-value as an error. This is on top of the compiler warning for attribute((warn_unused)). Mark the current occurrences (all unique_ptr.release()) with NOLINT to signal that we know what we're doing. Bug: 32619234 Bug: 117926937 Test: WITH_TIDY=1 mmma art Change-Id: I36659722335eef36acfa5845289104257a393874
Diffstat (limited to 'runtime/class_loader_context.cc')
-rw-r--r--runtime/class_loader_context.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/class_loader_context.cc b/runtime/class_loader_context.cc
index 4da0091884..5c8d68527b 100644
--- a/runtime/class_loader_context.cc
+++ b/runtime/class_loader_context.cc
@@ -64,10 +64,10 @@ ClassLoaderContext::~ClassLoaderContext() {
// make sure we do not de-allocate them.
for (ClassLoaderInfo& info : class_loader_chain_) {
for (std::unique_ptr<OatFile>& oat_file : info.opened_oat_files) {
- oat_file.release();
+ oat_file.release(); // NOLINT b/117926937
}
for (std::unique_ptr<const DexFile>& dex_file : info.opened_dex_files) {
- dex_file.release();
+ dex_file.release(); // NOLINT b/117926937
}
}
}