From nobody Mon Nov 23 01:18:43 2026 X-Original-To: dev-commits-src-all@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 4jXp444fSfz71THd for ; Mon, 23 Nov 2026 01:18:44 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jXp4403jhz4bnJ for ; Mon, 23 Nov 2026 01:18:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795396724; 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=6QZuznel/qYxSBzWBnR6eQDq43z+g7UaLgB0HoVyF0c=; b=fRE5BMArygwIc0zlofuK5yw0n80t6THtWzn4MG9irhQIE5XEZFSzAvhpVmf89uejcSCHNr Rh5xRiXa/x6BecqPqHCGuDPQNf1sLOI1uA1+n4xWIs7ZZz8liCxgATP4XteDOrFzi+GGep 8EQqLTq11r/8uZ8wjYmzD6n2VgEPF1A/NpWfnkzo0Pko+eFIPNjKBk8WW++g8VQlLqi0+U WC3t8tlknV1lePiuUEMSbXSaVmqXEWit+xjD8z5CFidXXmDlsM+xKfntqzRG3QvSwpLKIe kA4yS3KD1oQZP3UG/Sg4GWF6+i235DNUfLY9j4R+25WJ73FaTP1AZNn/KCUBbQ== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795396724; b=Sc6ADoaEBNwC5AN3mEjocQiuFrYrXJzoW/807xrDrsnliXxGTepJ7/+T/vV74/Mb9CbABS GVLnX9Fjq4chUozZsT7dAqLteuYzQucaRT02Pjnh82Mz2i+l09JqrzNfQEKnSh+HgxlOvj itiIR05gk5U7nGRbkbuWYLyTwpkHDOQhWbSv2avJI50h04p5NR8g8hydUsDzigrAU3piBE 86tB9B2GTI5tZAKNVcj6W+MmmXRRmdQSA3CTIGueHQJTJDkVtJiakWc7lLJOU+lPsupUb7 MU5uf+qCMT6BaDR0wodSaio/pqil8G1us8Kdvv4uMKj1vtvXXssLe1ETF+3S+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795396724; 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=6QZuznel/qYxSBzWBnR6eQDq43z+g7UaLgB0HoVyF0c=; b=sxysSXrX3D2d3764YuRHm2CzDPN6WBeRbrmh/8S4Iu+//vawWjnhhfKo4kyhDULIFN29QV YsDhW+LJqbUxkIaCOFR++K5iN9QzQu724pporv8K7sjebF+ZdiNCMTF9fOM8rEv9/9OpMC fLoR3C5U/pKDqqcL7HjNFpT2VyQC9yyhSIR2s9frKKMgPxpOVZR162VeKfAdpUgscx0gb2 bSBqzo6eLxyBuGYl9h/Htn2Mstrd/mH3RcOmExeCpXELRLnKBsCqSIomllERaspXDn8JSq UIPUBbBJhbjBmdorvJY9bq8hSM4pxTmVKEMQL5tSBnVRhKjNCwkchFcz+mAwaQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jXp436rBSzSpN for ; Mon, 23 Nov 2026 01:18:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 2eaf by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 23 Nov 2026 01:18:43 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Enji Cooper Subject: git: 349720311347 - stable/15 - tests/sys/capsicum: Fix -Wshadow issue with `fd_set` List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ngie X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 34972031134731b95b9c5dc5fe200e1236f3ad1c Auto-Submitted: auto-generated Date: Mon, 23 Nov 2026 01:18:43 +0000 Message-Id: <6b039473.2eaf.5f0e141@gitrepo.freebsd.org> The branch stable/15 has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=34972031134731b95b9c5dc5fe200e1236f3ad1c commit 34972031134731b95b9c5dc5fe200e1236f3ad1c Author: Enji Cooper AuthorDate: 2026-11-10 05:17:26 +0000 Commit: Enji Cooper CommitDate: 2026-11-23 01:17:40 +0000 tests/sys/capsicum: Fix -Wshadow issue with `fd_set` `fd_set` is defined in `sys/select.h`, and prior to this change, was in fcntl.cc as well. This change renames `fd_set` to `fd_set_` to avoid the name collision. MFC after: 1 week Reported by: gcc 14 Fixes: 04c4b2084eb9 ("capsicum-test: make the code WARNS=6 clean") (cherry picked from commit a479301abb2c7b384f574fcc641e502f70654835) --- tests/sys/capsicum/fcntl.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/sys/capsicum/fcntl.cc b/tests/sys/capsicum/fcntl.cc index 1ae33c2e051e..a9349b153cdc 100644 --- a/tests/sys/capsicum/fcntl.cc +++ b/tests/sys/capsicum/fcntl.cc @@ -332,17 +332,17 @@ TEST(Fcntl, FLSubRights) { // Check operations that need CAP_FCNTL with specific subrights. int fd_get = dup(fd); - int fd_set = dup(fd); + int fd_set_ = dup(fd); EXPECT_OK(cap_fcntls_limit(fd_get, CAP_FCNTL_GETFL)); - EXPECT_OK(cap_fcntls_limit(fd_set, CAP_FCNTL_SETFL)); + EXPECT_OK(cap_fcntls_limit(fd_set_, CAP_FCNTL_SETFL)); fd_flag = fcntl(fd_get, F_GETFL, 0); EXPECT_OK(fd_flag); - EXPECT_NOTCAPABLE(fcntl(fd_set, F_GETFL, 0)); - EXPECT_OK(fcntl(fd_set, F_SETFL, fd_flag)); + EXPECT_NOTCAPABLE(fcntl(fd_set_, F_GETFL, 0)); + EXPECT_OK(fcntl(fd_set_, F_SETFL, fd_flag)); EXPECT_NOTCAPABLE(fcntl(fd_get, F_SETFL, fd_flag)); close(fd_get); - close(fd_set); + close(fd_set_); // Check operations that need CAP_FCNTL with no subrights => ENOTCAPABLE. EXPECT_OK(cap_fcntls_limit(fd, 0));