aarch64: Fixed unused variable warning in aarch64-unwind.h
authorWei Wentao <weiwt.fnst@cn.fujitsu.com>
Thu, 17 Sep 2020 09:40:23 +0000 (10:40 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 17 Sep 2020 09:40:23 +0000 (10:40 +0100)
libgcc/
* config/aarch64/aarch64-unwind.h (aarch64_demangle_return_addr): Fix
unused variable warning.

libgcc/config/aarch64/aarch64-unwind.h

index 3c5f85b43c815f6a9187fe3b477b74278af402da..719b58cb071e79c7fd964e9209f2d21a8c8e338b 100644 (file)
@@ -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)