From ec7ef3042106fd5981bfaa86dc32965a508d05f3 Mon Sep 17 00:00:00 2001 From: Wei Wentao Date: Thu, 17 Sep 2020 10:40:23 +0100 Subject: [PATCH] aarch64: Fixed unused variable warning in aarch64-unwind.h libgcc/ * config/aarch64/aarch64-unwind.h (aarch64_demangle_return_addr): Fix unused variable warning. --- libgcc/config/aarch64/aarch64-unwind.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libgcc/config/aarch64/aarch64-unwind.h b/libgcc/config/aarch64/aarch64-unwind.h index 3c5f85b43c8..719b58cb071 100644 --- a/libgcc/config/aarch64/aarch64-unwind.h +++ b/libgcc/config/aarch64/aarch64-unwind.h @@ -55,7 +55,8 @@ aarch64_cie_signed_with_b_key (struct _Unwind_Context *context) static inline void * aarch64_demangle_return_addr (struct _Unwind_Context *context, - _Unwind_FrameState *fs, _Unwind_Word addr_word) + _Unwind_FrameState *fs ATTRIBUTE_UNUSED, + _Unwind_Word addr_word) { void *addr = (void *)addr_word; if (context->flags & RA_SIGNED_BIT) -- 2.30.2