summaryrefslogtreecommitdiff
path: root/perfetto_hprof
diff options
context:
space:
mode:
author Stefano Cianciulli <scianciulli@google.com> 2023-05-16 10:32:54 +0000
committer Stefano Cianciulli <scianciulli@google.com> 2023-05-22 10:36:39 +0000
commit78f3c72e8948087352788997a70854dee613352c (patch)
tree306db3c15bc4b7af149bcf3e07be533e50679b88 /perfetto_hprof
parentdc771261232c2ff702373f396a5a7fe586e2f0a6 (diff)
Use C++17's [[maybe_unused]] attribute in ART
Bug: 169680875 Test: mmm art Change-Id: Ic0cc320891c42b07a2b5520a584d2b62052e7235
Diffstat (limited to 'perfetto_hprof')
-rw-r--r--perfetto_hprof/perfetto_hprof.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/perfetto_hprof/perfetto_hprof.cc b/perfetto_hprof/perfetto_hprof.cc
index 906362ab29..a6ad4a4976 100644
--- a/perfetto_hprof/perfetto_hprof.cc
+++ b/perfetto_hprof/perfetto_hprof.cc
@@ -438,10 +438,10 @@ class ReferredObjectsFinder {
referred_objects_->emplace_back(std::move(field_name), ref);
}
- void VisitRootIfNonNull(art::mirror::CompressedReference<art::mirror::Object>* root
- ATTRIBUTE_UNUSED) const {}
- void VisitRoot(art::mirror::CompressedReference<art::mirror::Object>* root
- ATTRIBUTE_UNUSED) const {}
+ void VisitRootIfNonNull(
+ [[maybe_unused]] art::mirror::CompressedReference<art::mirror::Object>* root) const {}
+ void VisitRoot(
+ [[maybe_unused]] art::mirror::CompressedReference<art::mirror::Object>* root) const {}
private:
// We can use a raw Object* pointer here, because there are no concurrent GC threads after the