From patchwork Thu Nov 2 13:53:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 160911 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp413694vqu; Thu, 2 Nov 2023 08:01:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE78lKLgfuDcbGEKj9qFuCFSWjSTFrJl7rVYmxVdEdVTA+uKZjweGPFlygMYRuRoGzlXbxM X-Received: by 2002:ac8:7f08:0:b0:41e:1e9c:6af4 with SMTP id f8-20020ac87f08000000b0041e1e9c6af4mr19226252qtk.45.1698937276415; Thu, 02 Nov 2023 08:01:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698937276; cv=pass; d=google.com; s=arc-20160816; b=dIgnU6C0VMzQ9iGUgfJjnljGFXCu1eQATZ1Q9gtClkFt7KTo875DyibabM8F77F6zR 0gI1sOwMJXhunIfXVajdi7d9/lvEuvFxhfXBG9f3EhqY7U8hIQAZwRBM5dqy0LeU0wKt E5FNqVnLusBg+T1lVvDlMaW84DYppAgjvDgw4uL4MSDSmIF4lBdqgU4TftBCc41OmEDH uGZOkJ527WV4xwxuxm/TVE5QRcy0Vejjuur8D5NVqHk+x+NuNTiP+vg+ALYwkxXxV1uO G91pW3m5IEooJF0FP0spRTdtWSEnqr0Y/zPORQTriuIFG6AIZUHr2GP0RMTdrLgFlVFZ 3T5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=JhpE1U1OWpsa4GNJ2ynVqdDIXLfwb3DuxBw0fNITcWs=; fh=sJ+2/4g29YdyXkoRrFZSpsL2zxijepB7X/1rB0LDDh8=; b=hkYuBVrWY4adcfRnctndBgbfeTIiYpb89x/YPiw7scehPLW7luzAFBQHNv9g/2oXuc EDhxWF2ZOC8CORatz2g6J07bX4m66Dm0IR5Ffg3+1BmrrewbY9ASVKX5g6kAu/yAdqjZ OmicR9A4Cbbm6Uw5/MSZO0Wuv667hCvXSjDZBbBspKp69ScTvK8+hbn+4zklUiUPTZnA Ks2vk5csavqsQtaljP7WOSsYi8QaS1usAeJLOw6/k2JFyQzTALydL0wa2MgWMAHthL0u p8CTtW482n4jIdYYy9mGcW7cyhmaH5X+BxfurilQ4cWkDWSuFvlKCQf5m/DigefX6fdp SEng== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QPHH+gTi; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id bp39-20020a05622a1ba700b00419900d150esi21138qtb.515.2023.11.02.08.01.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 08:01:16 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QPHH+gTi; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9A98B3858298 for ; Thu, 2 Nov 2023 13:55: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.129.124]) by sourceware.org (Postfix) with ESMTPS id EE6A9385841C for ; Thu, 2 Nov 2023 13:54:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EE6A9385841C 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 EE6A9385841C 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=1698933283; cv=none; b=fBu/xedjTnodE6tKfjuuOMNDzqtLNBAnef/zXyDS6j4v0myoGyGw8xGxrX02WFEh2fUdRP9/g179znQ0xn/KP9xhB1y/Yzpz6tA7qdY5wsOZ5Ds4dF2wgdmZqLG0JdOt0/kEF0V8iydKrgLqGXURp1GdCmsE2nt0RLsSQO+l0s0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698933283; c=relaxed/simple; bh=7haPb57XnT7R25peyjHAUFo8wAbLhKw6xGta7OIHndI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=aLrxriJZI4XbggdufXQGBmCaw0k4rkSdpieiWbRpLrQ6/oiPqzIniWfOxQrdC/wO9KE/5ZN1Oxdxit3jAlr/Uv0a7wPAcyPET8ZxcSHwA9CIl80J/eCJx3wrfmNvTGGWDUidoI1y6PJIBoJjExqV2G0q++7x0z5/Z02I3Ic5gUg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698933282; 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=JhpE1U1OWpsa4GNJ2ynVqdDIXLfwb3DuxBw0fNITcWs=; b=QPHH+gTiRg1E6DZrkISy6KOyxYanP8qiwcLmqL9FL9MMOcNRd3DnX/d87pYnLHJVaswWfz oKP06Yra3wGZnXk7ZO/UlNXaFypsRJ4z62+k4JQPxPRtwlixqFPcKu6xUmYfoiE0caHof2 sfIq9T9jtaS+629ZM9trVqXIDKpEYQQ= 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-333-E898F_jBMveeA5ZFIkE8Eg-1; Thu, 02 Nov 2023 09:54:40 -0400 X-MC-Unique: E898F_jBMveeA5ZFIkE8Eg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (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 0AF38101A54C; Thu, 2 Nov 2023 13:54:40 +0000 (UTC) Received: from localhost (unknown [10.42.28.65]) by smtp.corp.redhat.com (Postfix) with ESMTP id CA7FE2026D6E; Thu, 2 Nov 2023 13:54:39 +0000 (UTC) From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Fix warning during configure Date: Thu, 2 Nov 2023 13:53:56 +0000 Message-ID: <20231102135439.2777314-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-13.7 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=unavailable 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781464853226373915 X-GMAIL-MSGID: 1781464853226373915 Tested x86_64-linux. Pushed to trunk. -- >8 -- The checks for snprintf give a -Wformat warning due to a missing argument. libstdc++-v3/ChangeLog: * acinclude.m4 (GLIBCXX_ENABLE_C99): Fix snprintf checks. * configure: Regenerate. --- libstdc++-v3/acinclude.m4 | 4 ++-- libstdc++-v3/configure | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index d8f0ba1c3e2..654b99e92d7 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -997,7 +997,7 @@ AC_DEFUN([GLIBCXX_ENABLE_C99], [ vscanf("%i", args); vsnprintf(fmt, 0, "%i", args); vsscanf(fmt, "%i", args); - snprintf(fmt, 0, "%i"); + snprintf(fmt, 0, "%i", 1); }], [], [glibcxx_cv_c99_stdio_cxx98=yes], [glibcxx_cv_c99_stdio_cxx98=no]) ]) @@ -1578,7 +1578,7 @@ AC_DEFUN([GLIBCXX_ENABLE_C99], [ vscanf("%i", args); vsnprintf(fmt, 0, "%i", args); vsscanf(fmt, "%i", args); - snprintf(fmt, 0, "%i"); + snprintf(fmt, 0, "%i", 1); }], [], [glibcxx_cv_c99_stdio_cxx11=yes], [glibcxx_cv_c99_stdio_cxx11=no]) ])