From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id A39B23858D33 for ; Fri, 24 Nov 2023 08:09:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A39B23858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A39B23858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700813390; cv=none; b=ACMzMmR92KflJ6Cn6TwtS7LQ4k1v7dw2AkWHWCwAdvUMWx7DBIP02RfMmZxTBf0KW6/M5wS7Z1XsIfOpxc6GscGAUjJBG2TJ5oicEnJYqTCn5leCZtyER7MQF3M9POx2jTaW7AWjnCueEAxXcrMFqjigD8rIVFECrZGF0BwOn5c= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700813390; c=relaxed/simple; bh=ONaben9e4+NltvjZtwkm5HtiS2Bqqo7qhCtPmW9SLw0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Pus5jE9lxw1EWUNLBiU3Xg7HRHoTlm0ri9jMrWDFK4srzBD3ccHZuVfg0wfa9+m01YItVhyUIBul4ChKwLlW9JituYqfHVrVKZTdggFOmqIPmkBWLuWLucclgbXtTkkU9emXums5y0yrmBSvOeWTq7Wr0K9vdYJMToRzJs0VgEE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700813388; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=Sl0K7YthvFRuVJ8khZR9a1xCPyVC7biWwXEO6tMpq9U=; b=iQwPujIIAYHcks8MOR4rODCbwabqqXIMokRp9pY8ON9wNR+fFFM8V+6loNfdhFSi9O0CIr h3oyJ1sNKQy2V/RKEYhSf7wUGzvFLS2KDUN+VgsSsOnRR4+nMNzquDCCt3E3G0hBAAzXJ0 EJPsauP5StiIuKRgslXJcsEs3+ruU3I= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-47-4wEnyl5BNuGPRXoZdp1wPw-1; Fri, 24 Nov 2023 03:09:46 -0500 X-MC-Unique: 4wEnyl5BNuGPRXoZdp1wPw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 90371101A53B for ; Fri, 24 Nov 2023 08:09:46 +0000 (UTC) Received: from prancer.redhat.com (unknown [10.42.28.24]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3DD1BC1596F for ; Fri, 24 Nov 2023 08:09:46 +0000 (UTC) From: Nick Clifton To: binutils@sourceware.org Subject: Commit: Fix building s390 target with clang Date: Fri, 24 Nov 2023 08:09:45 +0000 Message-ID: <875y1rh8s6.fsf@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Guys, I am applying the patch below to fix a compile time warning message when building the binutils for the s390 using clang: opcodes/s390-opc.c:265:20: error: unused function 'unused_s390_operands_static_asserts' [-Werror,-Wunused-function] I also tidies up the formatting of the function at the same time. Cheers Nick 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[] = }; -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. */