From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2124) id 58BDD3858286; Fri, 24 Nov 2023 08:10:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 58BDD3858286 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Nick Clifton To: bfd-cvs@sourceware.org Subject: [binutils-gdb] Fix building for the s390 target with clang X-Act-Checkin: binutils-gdb X-Git-Author: Nick Clifton X-Git-Refname: refs/heads/master X-Git-Oldrev: d81251ee1f84f7d47c0aa1813a005d9c7a4bdab2 X-Git-Newrev: 6c0c7d489bdf106d90b300aeb8d042c7b1ad3d2b Message-Id: <20231124081018.58BDD3858286@sourceware.org> Date: Fri, 24 Nov 2023 08:10:18 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Nov 2023 08:10:18 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D6c0c7d489bdf= 106d90b300aeb8d042c7b1ad3d2b commit 6c0c7d489bdf106d90b300aeb8d042c7b1ad3d2b Author: Nick Clifton Date: Fri Nov 24 08:10:12 2023 +0000 Fix building for the s390 target with clang Diff: --- opcodes/s390-opc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/opcodes/s390-opc.c b/opcodes/s390-opc.c index 0427bd8b2e0..cbfdb3df0b7 100644 --- a/opcodes/s390-opc.c +++ b/opcodes/s390-opc.c @@ -262,9 +262,10 @@ const struct s390_operand s390_operands[] =3D =20 }; =20 -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 =3D=3D J32_16); + static_assert (ARRAY_SIZE (s390_operands) - 1 =3D=3D J32_16); } =20 /* Macros used to form opcodes. */