From patchwork Mon Mar 20 23:04:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 72517 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1480214wrt; Mon, 20 Mar 2023 16:05:04 -0700 (PDT) X-Google-Smtp-Source: AK7set+S8hjgkK3Uf0ASRrOTvHEn3S0GTDhKznd8m4lxyWlSB+W8YJYK4iiPy5Mz4Hw+hfn27/vo X-Received: by 2002:aa7:c3ca:0:b0:501:d3a1:9a4a with SMTP id l10-20020aa7c3ca000000b00501d3a19a4amr1297492edr.19.1679353504236; Mon, 20 Mar 2023 16:05:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679353504; cv=none; d=google.com; s=arc-20160816; b=HUmX+0PA1lqoWERoCU17j9tN/zipyBc9fkJhEjNAFwtKbD7sq9nZOF+OQKzcC3xs+Q LziSsGlE2FjmYM8zIOw4p4tiqiCzR5UVXYKPzw/hoCJ1ol3OHeOSzzVIO9OIbdZNylRW 2FsjVDJK8tH5m4q4Z7tNQ7orik42ZerFngRj+FNN7rXheMUrB7n4KZsz7aD+peMZrwRT ZoZVf4O6NFa3Q7otwdY2E7pzOSuX0X9kGjn5+6zyJEyEhRq/dB92S1OkQADzeMAQ3Z5q V5iH6Pyw1E5z/PuUSGjT6BsE+9EXNlSXqkb4oPXzlDzgJqBhkBXhAn/u6MLX0m1JOX8w fq7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=Z12IqKa53BsgY8aAaMgotkdKRYdEDri7lr8pA24Jg4s=; b=RFWYFCm3rJZh+DBs8DCG5Y0MuRSVqXheO7gsUo7nCLhJNX//rrDKXAv5mSjy7CfHWO jnU95SYsJ/5rHYVRryriul8h+5i0PSJWxlAriycKu9aw/ksJ5RTgQDLh3ofb4Aut9MGF 6l+PMUZmBKIUHDxga63T2gHwgshf5sBm1CxCGewAshqQyDYhjLufjLXkvphwumTOk4/j 63PVYENfZACdDYwGasrTHWMZOHalj1MVnnjz7dgX5lhXOWZ9EJayIxPwduKDJpLcrJdV uujaVtF7bNfVB7NxRB7bus8DI25BuhiHOsuwGFZus3KzEvnzRek4ZyzE4F+57FsfIQJy 71JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=AQrFY1Al; 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=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id m19-20020a170906161300b008b2fb08789fsi3970253ejd.828.2023.03.20.16.05.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 16:05:04 -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=@gcc.gnu.org header.s=default header.b=AQrFY1Al; 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=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0DBE83858288 for ; Mon, 20 Mar 2023 23:05:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0DBE83858288 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679353503; bh=Z12IqKa53BsgY8aAaMgotkdKRYdEDri7lr8pA24Jg4s=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=AQrFY1AlFfU9RVq+L58Wc1Z28tTaO7UI/j0yK2D2rib2XJVHo/cq9GBvG0OMm4PkR 1G7/FGtj5X9wN58P8hXykwvdbXcACxlae//M5Y5vL0+VUW3q+iXsj4YM13m1lTtvn2 tm5aN1UuZFHzPZ/+Ez179rTVaI5Qfgf+bd3P58uw= 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 ESMTPS id EC32B3858C52 for ; Mon, 20 Mar 2023 23:04:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EC32B3858C52 Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-652-0VmwrhuKOOau5WsgYmy0-Q-1; Mon, 20 Mar 2023 19:04:17 -0400 X-MC-Unique: 0VmwrhuKOOau5WsgYmy0-Q-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1F5981C05AB4; Mon, 20 Mar 2023 23:04:17 +0000 (UTC) Received: from localhost (unknown [10.33.36.149]) by smtp.corp.redhat.com (Postfix) with ESMTP id DBBF42027047; Mon, 20 Mar 2023 23:04:16 +0000 (UTC) To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Fix formatting in std::filesystem helper function Date: Mon, 20 Mar 2023 23:04:16 +0000 Message-Id: <20230320230416.144993-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.1 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_H2, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jonathan Wakely via Gcc-patches From: Jonathan Wakely Reply-To: Jonathan Wakely Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760929780022051288?= X-GMAIL-MSGID: =?utf-8?q?1760929780022051288?= Tested x86_64-linux. Pushed to trunk. -- >8 -- libstdc++-v3/ChangeLog: * src/filesystem/ops-common.h (get_temp_directory_from_env): Fix formatting. --- libstdc++-v3/src/filesystem/ops-common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/src/filesystem/ops-common.h b/libstdc++-v3/src/filesystem/ops-common.h index abbfca43e5c..c95511b5c95 100644 --- a/libstdc++-v3/src/filesystem/ops-common.h +++ b/libstdc++-v3/src/filesystem/ops-common.h @@ -625,7 +625,8 @@ _GLIBCXX_BEGIN_NAMESPACE_FILESYSTEM { buf.resize(len); len = GetTempPathW(buf.size(), buf.data()); - } while (len > buf.size()); + } + while (len > buf.size()); if (len == 0) ec = __last_system_error();