summaryrefslogtreecommitdiff
path: root/runtime/native_stack_dump.cc
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 /runtime/native_stack_dump.cc
parentdc771261232c2ff702373f396a5a7fe586e2f0a6 (diff)
Use C++17's [[maybe_unused]] attribute in ART
Bug: 169680875 Test: mmm art Change-Id: Ic0cc320891c42b07a2b5520a584d2b62052e7235
Diffstat (limited to 'runtime/native_stack_dump.cc')
-rw-r--r--runtime/native_stack_dump.cc30
1 files changed, 14 insertions, 16 deletions
diff --git a/runtime/native_stack_dump.cc b/runtime/native_stack_dump.cc
index d6a0fae02f..bda912eceb 100644
--- a/runtime/native_stack_dump.cc
+++ b/runtime/native_stack_dump.cc
@@ -431,22 +431,20 @@ void DumpNativeStack(std::ostream& os,
#elif defined(__APPLE__)
-void DumpNativeStack(std::ostream& os ATTRIBUTE_UNUSED,
- pid_t tid ATTRIBUTE_UNUSED,
- const char* prefix ATTRIBUTE_UNUSED,
- ArtMethod* current_method ATTRIBUTE_UNUSED,
- void* ucontext_ptr ATTRIBUTE_UNUSED,
- bool skip_frames ATTRIBUTE_UNUSED) {
-}
-
-void DumpNativeStack(std::ostream& os ATTRIBUTE_UNUSED,
- unwindstack::AndroidLocalUnwinder& existing_map ATTRIBUTE_UNUSED,
- pid_t tid ATTRIBUTE_UNUSED,
- const char* prefix ATTRIBUTE_UNUSED,
- ArtMethod* current_method ATTRIBUTE_UNUSED,
- void* ucontext_ptr ATTRIBUTE_UNUSED,
- bool skip_frames ATTRIBUTE_UNUSED) {
-}
+void DumpNativeStack([[maybe_unused]] std::ostream& os,
+ [[maybe_unused]] pid_t tid,
+ [[maybe_unused]] const char* prefix,
+ [[maybe_unused]] ArtMethod* current_method,
+ [[maybe_unused]] void* ucontext_ptr,
+ [[maybe_unused]] bool skip_frames) {}
+
+void DumpNativeStack([[maybe_unused]] std::ostream& os,
+ [[maybe_unused]] unwindstack::AndroidLocalUnwinder& existing_map,
+ [[maybe_unused]] pid_t tid,
+ [[maybe_unused]] const char* prefix,
+ [[maybe_unused]] ArtMethod* current_method,
+ [[maybe_unused]] void* ucontext_ptr,
+ [[maybe_unused]] bool skip_frames) {}
#else
#error "Unsupported architecture for native stack dumps."