From patchwork Thu Oct 3 11:30:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 1992311 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=etariucp; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XK8db3MBkz1xt1 for ; Thu, 3 Oct 2024 21:31:31 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 45F21384A832 for ; Thu, 3 Oct 2024 11:31:29 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 67B5D38650EA for ; Thu, 3 Oct 2024 11:30:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 67B5D38650EA 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 67B5D38650EA Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727955057; cv=none; b=wDSAUwisx/Qa99ZejrruGbJ4S351P1xKHWqBlJzYduqXeB4YUJqBR6Tkj5kyBeiz1Yg3cihA1Tf/qaOXDiHtrQoHYHweM68LWL7zVVCbkPJI9jhJjJSHlBYDqdBtPfPmbEaHsYJPalBUeGaTljwHWPAKGwECicZVCBrb485TxNE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727955057; c=relaxed/simple; bh=aWE0aSF//3/fZ6yetAgjkjxJN55pq7LLMqRL7RDyBug=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=T5KMwqkPt7Oy8vhX8YYIMmH0Y3v7jEwA8zHgKFO4DIXlU+r1RoGJDQbyDSp5mraa0121KoKky7yT3G+utamfS2mp9pmRsA4SUBuwoWcXgOgRlvL9g8A2lxBXlpDIXBu448dFi4WSYWjxb2PaESqTkomf8d3FUjTF430MDbiuLWg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1727955054; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=y710JVDlV/BgkzQi3WRXYGtIjfuCYeiGX7RWxRqZcJA=; b=etariucpXSiPCmea+sPZC3RtvrKCvSWwDtVLWtETcyw+vRYeTpXIGvYAk6+rrHxXmRyqvb 61LVkmHik/AZccsFvaDmAdaap8jB64w0NfwX/GllUM72Mp9qgWHzyYNohB6mNtjFrTnStC z8+6aLvfhJLm7msvJCNPFCsLdGZsLLA= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-386-fvSILyuzPzaIhmn7BAgg_g-1; Thu, 03 Oct 2024 07:30:52 -0400 X-MC-Unique: fvSILyuzPzaIhmn7BAgg_g-1 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id A27B11955BC1; Thu, 3 Oct 2024 11:30:50 +0000 (UTC) Received: from localhost (unknown [10.42.28.136]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id ECFF819560A3; Thu, 3 Oct 2024 11:30:48 +0000 (UTC) From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Fix some warnings seen during bootstrap Date: Thu, 3 Oct 2024 12:30:19 +0100 Message-ID: <20241003113046.3523490-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.0 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_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org Tested x86_64-linux. Pushed to trunk. -- >8 -- libstdc++-v3/ChangeLog: * include/bits/locale_facets_nonio.tcc (money_put::__do_get): Ignore -Wformat warning for __ibm128 arguments. * include/tr1/tuple (ignore): Ignore -Wunused warning. --- libstdc++-v3/include/bits/locale_facets_nonio.tcc | 3 +++ libstdc++-v3/include/tr1/tuple | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/include/bits/locale_facets_nonio.tcc b/libstdc++-v3/include/bits/locale_facets_nonio.tcc index 5fddc1e3b26..53553d113b2 100644 --- a/libstdc++-v3/include/bits/locale_facets_nonio.tcc +++ b/libstdc++-v3/include/bits/locale_facets_nonio.tcc @@ -637,6 +637,8 @@ _GLIBCXX_BEGIN_NAMESPACE_LDBL_OR_CXX11 #if defined _GLIBCXX_LONG_DOUBLE_ALT128_COMPAT \ && defined __LONG_DOUBLE_IEEE128__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wformat" // '%Lf' expects 'long double' extern "C" __typeof__(__builtin_snprintf) __glibcxx_snprintfibm128 __asm__("snprintf"); @@ -671,6 +673,7 @@ __typeof__(__builtin_snprintf) __glibcxx_snprintfibm128 __asm__("snprintf"); return __intl ? _M_insert(__s, __io, __fill, __digits) : _M_insert(__s, __io, __fill, __digits); } +#pragma GCC diagnostic pop #endif _GLIBCXX_END_NAMESPACE_LDBL_OR_CXX11 diff --git a/libstdc++-v3/include/tr1/tuple b/libstdc++-v3/include/tr1/tuple index b5c62b585a9..f66090d3631 100644 --- a/libstdc++-v3/include/tr1/tuple +++ b/libstdc++-v3/include/tr1/tuple @@ -423,7 +423,7 @@ namespace tr1 // TODO: Put this in some kind of shared file. namespace { - _Swallow_assign ignore; + _Swallow_assign ignore __attribute__((__unused__)); } // anonymous namespace }