From nobody Thu Aug 07 18:26:51 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bybGh28R4z64Zqf; Thu, 07 Aug 2025 18:26:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bybGh14MXz3ncs; Thu, 07 Aug 2025 18:26:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754591212; 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=irIYwuqdx2y74aaxAuk1iOVAfjAw2N2sgZKeIaRF0tM=; b=UZK7Z7k4yfDIiEmZNauE9iqB4eAaCY5PRKsjc7zibbXVOYYqQ9dp0VbIz+2SHssQm9kvfe IrM+uncsOGryXv85MFVBTV51YQovgOY8rqn4GO2QRqZvqD7ArZUe06pyzvM/uFdlWySSov z2a9C0ziQ12yjBRgNHY/kLuJx1Zr+h6FE11vDQlvzt8VovcEggXoQCAYdGONRhEiKsxKNA 2HJ+F01Xmf2THpDkuecj7sCAdPFaF8co9AgTmBQ5RI+aMACp02/dayGMyulLzy7hB8LnlL 8YRq3QWkW7dVwflipZyvMr6su1EtK+ltHuYP0+6ZuK7za/EJ+lE7D19XGP9gjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754591212; 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=irIYwuqdx2y74aaxAuk1iOVAfjAw2N2sgZKeIaRF0tM=; b=Ywal/w537sv/7tqViHKCXoM0+cdLCpbnJ3bEcaSHCE5ppa4pwVILviwm1jsoBfCs+bihoC +vf+Eys7xCtAPMlaxXfwqdzFBjMt72BoYl2G+PhT4FjCSZwaDsOlF+89r1XLhPJBxf5nQU GjDt71FNtdB8J89fct5b9I34mFwWd7ZK0efs26/1SXsBW/Gfndb7s9qtXewYbZE7F5GGLc nzVFNX8CvZKtR7/ZBLGG5+2YQrFIUFe+B1nz5oYkYYlBxlwF1flbyOopz7bKKWpJO2I4eH 6o64AMxlXqxQTM21BFco19WHIUkluEK6PPkCBe/OO7paevOtASirx57ejhK17Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1754591212; a=rsa-sha256; cv=none; b=lP/MDvun4P62hmReMCi2eZF5DajjJRU+V8gH04k5aUEMRtYLILYQWW48zMXLqxOhVil3gm oA5I7g/Txqcojwbc0YYoGcmoz4EioiW85wNDcGrUtNTuAJUrHwixhmsXGaHq95KR39RrlV Farg3CeHJj2tOCqGdrItWNtoAl4aa4tIIv/TGzFV/YcitpumOUOS7bqm6eXVIDCAA52ay1 ZA7Qdjp6ZSw6yDpUBExhABaNswGstjAUoZMofItOjP8WJUda6STOfuNtLM71vZT30ajaXw INZOeF/LmgvKjQMsezwZYuZJEbT2ZSgED9lVkoPpuAvHFjK+Kujd9Es0jI2mLw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bybGh05lyz1H4h; Thu, 07 Aug 2025 18:26:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 577IQpoQ081493; Thu, 7 Aug 2025 18:26:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 577IQpIw081490; Thu, 7 Aug 2025 18:26:51 GMT (envelope-from git) Date: Thu, 7 Aug 2025 18:26:51 GMT Message-Id: <202508071826.577IQpIw081490@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: ca0d182dfeb6 - main - libutil++: Appease GCC -Wshadow warnings in constructors List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ca0d182dfeb68405cfba002622787adb10cfe7a0 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ca0d182dfeb68405cfba002622787adb10cfe7a0 commit ca0d182dfeb68405cfba002622787adb10cfe7a0 Author: John Baldwin AuthorDate: 2025-08-07 17:10:55 +0000 Commit: John Baldwin CommitDate: 2025-08-07 18:26:46 +0000 libutil++: Appease GCC -Wshadow warnings in constructors Fixes: 937e92b5f7cc ("libutil++: Add freebsd::fd_up class to manage file descriptors") Fixes: 7be913e00d79 ("libutil++: Add freebsd::pidfile wrapper class around struct pidfh") Sponsored by: Chelsio Communications --- lib/libutil++/libutil++.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libutil++/libutil++.hh b/lib/libutil++/libutil++.hh index ecf737f2fcb0..60e6b3fc5fde 100644 --- a/lib/libutil++/libutil++.hh +++ b/lib/libutil++/libutil++.hh @@ -70,7 +70,7 @@ namespace freebsd { class fd_up { public: fd_up() : fd(-1) {} - fd_up(int fd) : fd(fd) {} + fd_up(int _fd) : fd(_fd) {} fd_up(fd_up &&other) : fd(other.release()) {} fd_up(fd_up const &) = delete; @@ -159,7 +159,7 @@ namespace freebsd { class pidfile { public: pidfile() = default; - pidfile(struct pidfh *pfh) : pfh(pfh) {} + pidfile(struct pidfh *_pfh) : pfh(_pfh) {} pidfile(pidfile &&other) : pfh(other.release()) {} pidfile(pidfile const &) = delete;