From patchwork Wed Aug 28 20:42:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 1978090 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=i1z0oZKv; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4WvGbL2KyZz1yXd for ; Thu, 29 Aug 2024 06:43:42 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 81B663858430 for ; Wed, 28 Aug 2024 20:43:40 +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 6485D3858430 for ; Wed, 28 Aug 2024 20:43:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6485D3858430 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 6485D3858430 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=1724877793; cv=none; b=ro/jeqBqv+ieVtY8eOUl1jF/WDi2FTmC/TLfzK+FDDeNALn17URVZ9RHQRo4jrEFLmfSNkzubiWa3Dt2OEp1tTK18RqM0R36gqPoG2b6dhmyjdjvzmTurnJ1ZnFKCz8Xfz91jE4OzN9K5qv2/gVz9wt9bU3VhI0MVIXZSVKIcEY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724877793; c=relaxed/simple; bh=qoNsZjOHYxoc1FdUuCoA92viXzxL8DesDlVuRoYgCkc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ZMYk0wGtBzoRzCTkZqcVL++E4yFkx3XoDG8fmiCUaRjWRAh/4HezpMY6gMPTGpclbfIaDceYZr0M5Sx6LS9z49ylibNtF/pOZzKF3daAk6BJAtPCeWFIeQVH1cfaNP8Pp9nQsKOCNisAG1iVMeAzydMi2dN7xVXbhslYF5VanAM= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724877789; 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=JgmO1+7IkkoWgykwSV2o2YqTeyaXFy1/MzuGmzri8NY=; b=i1z0oZKvAXVFAw8xTvpMA57iIrpiO0b4KNVAZlmdz8k6RmVamhMteE8SkQNkGON6ccH4t4 L8fTkGxXu4tu0RqtHphBgPHVJ7Up9qcX7CogI8sFoyAUX41ONjy6VnD10wN10fQEjK67KE TznWrROmJK8tOdehE5nxzxgSE+GSCf0= Received: from mx-prod-mc-03.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-76-TCsWkM9QM7CeBGMqyzb53Q-1; Wed, 28 Aug 2024 16:43:06 -0400 X-MC-Unique: TCsWkM9QM7CeBGMqyzb53Q-1 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.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 mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C302F1955D42; Wed, 28 Aug 2024 20:43:05 +0000 (UTC) Received: from localhost (unknown [10.42.28.101]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 1CEF1300019C; Wed, 28 Aug 2024 20:43:04 +0000 (UTC) From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Fix -Wunused-parameter warnings in Networking TS headers Date: Wed, 28 Aug 2024 21:42:36 +0100 Message-ID: <20240828204303.1862183-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 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_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 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/experimental/io_context: Remove name of unused parameter. * include/experimental/socket: Add [[maybe_unused]] attribute. --- libstdc++-v3/include/experimental/io_context | 2 +- libstdc++-v3/include/experimental/socket | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/include/experimental/io_context b/libstdc++-v3/include/experimental/io_context index 4db3782e2bb..8b0dba7d5fa 100644 --- a/libstdc++-v3/include/experimental/io_context +++ b/libstdc++-v3/include/experimental/io_context @@ -148,7 +148,7 @@ inline namespace v1 io_context() : _M_work_count(0) { } explicit - io_context(int __concurrency_hint) : _M_work_count(0) { } + io_context(int /* __concurrency_hint */) : _M_work_count(0) { } io_context(const io_context&) = delete; io_context& operator=(const io_context&) = delete; diff --git a/libstdc++-v3/include/experimental/socket b/libstdc++-v3/include/experimental/socket index 3fe83a001e6..62beb43d269 100644 --- a/libstdc++-v3/include/experimental/socket +++ b/libstdc++-v3/include/experimental/socket @@ -493,7 +493,7 @@ inline namespace v1 bool non_blocking() const { return _M_bits.non_blocking; } void - native_non_blocking(bool __mode, error_code& __ec) + native_non_blocking([[maybe_unused]] bool __mode, error_code& __ec) { #if defined _GLIBCXX_HAVE_FCNTL_H && defined _GLIBCXX_HAVE_DECL_O_NONBLOCK int __flags = ::fcntl(_M_sockfd, F_GETFL, 0);