From 78f3c72e8948087352788997a70854dee613352c Mon Sep 17 00:00:00 2001 From: Stefano Cianciulli Date: Tue, 16 May 2023 10:32:54 +0000 Subject: Use C++17's [[maybe_unused]] attribute in ART Bug: 169680875 Test: mmm art Change-Id: Ic0cc320891c42b07a2b5520a584d2b62052e7235 --- compiler/utils/stack_checks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/utils/stack_checks.h') diff --git a/compiler/utils/stack_checks.h b/compiler/utils/stack_checks.h index d0fff73df3..1be4532f3e 100644 --- a/compiler/utils/stack_checks.h +++ b/compiler/utils/stack_checks.h @@ -35,7 +35,7 @@ static constexpr size_t kSmallFrameSize = 1 * KB; // stack overflow check on method entry. // // A frame is considered large when it's above kLargeFrameSize. -static inline bool FrameNeedsStackCheck(size_t size, InstructionSet isa ATTRIBUTE_UNUSED) { +static inline bool FrameNeedsStackCheck(size_t size, [[maybe_unused]] InstructionSet isa) { return size >= kLargeFrameSize; } -- cgit v1.2.3-59-g8ed1b