summaryrefslogtreecommitdiff
path: root/tools/jvmti-agents/breakpoint-logger/breakpoint_logger.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 /tools/jvmti-agents/breakpoint-logger/breakpoint_logger.cc
parentdc771261232c2ff702373f396a5a7fe586e2f0a6 (diff)
Use C++17's [[maybe_unused]] attribute in ART
Bug: 169680875 Test: mmm art Change-Id: Ic0cc320891c42b07a2b5520a584d2b62052e7235
Diffstat (limited to 'tools/jvmti-agents/breakpoint-logger/breakpoint_logger.cc')
-rw-r--r--tools/jvmti-agents/breakpoint-logger/breakpoint_logger.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/jvmti-agents/breakpoint-logger/breakpoint_logger.cc b/tools/jvmti-agents/breakpoint-logger/breakpoint_logger.cc
index 2f8b68239b..25bf794869 100644
--- a/tools/jvmti-agents/breakpoint-logger/breakpoint_logger.cc
+++ b/tools/jvmti-agents/breakpoint-logger/breakpoint_logger.cc
@@ -36,7 +36,7 @@ struct BreakpointTargets {
std::vector<SingleBreakpointTarget> bps;
};
-static void VMInitCB(jvmtiEnv* jvmti, JNIEnv* env, jthread thr ATTRIBUTE_UNUSED) {
+static void VMInitCB(jvmtiEnv* jvmti, JNIEnv* env, [[maybe_unused]] jthread thr) {
BreakpointTargets* all_targets = nullptr;
jvmtiError err = jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&all_targets));
if (err != JVMTI_ERROR_NONE || all_targets == nullptr) {
@@ -350,7 +350,7 @@ enum class StartType {
static jint AgentStart(StartType start,
JavaVM* vm,
char* options,
- void* reserved ATTRIBUTE_UNUSED) {
+ [[maybe_unused]] void* reserved) {
jvmtiEnv* jvmti = nullptr;
jvmtiError error = JVMTI_ERROR_NONE;
{