]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix building for the s390 target with clang
authorNick Clifton <nickc@redhat.com>
Fri, 24 Nov 2023 08:10:12 +0000 (08:10 +0000)
committerJens Remus <jremus@linux.ibm.com>
Thu, 24 Oct 2024 09:23:07 +0000 (11:23 +0200)
(cherry picked from commit 6c0c7d489bdf106d90b300aeb8d042c7b1ad3d2b)

opcodes/s390-opc.c

index 0427bd8b2e035002334d7cc87edd597170be0760..cbfdb3df0b73d87517aa606611f73d2ee8e5b9a7 100644 (file)
@@ -262,9 +262,10 @@ const struct s390_operand s390_operands[] =
 
 };
 
-static inline void unused_s390_operands_static_asserts(void)
+static inline void ATTRIBUTE_UNUSED
+unused_s390_operands_static_asserts (void)
 {
-  static_assert(ARRAY_SIZE(s390_operands) - 1 == J32_16);
+  static_assert (ARRAY_SIZE (s390_operands) - 1 == J32_16);
 }
 
 /* Macros used to form opcodes.  */