From nobody Mon Nov 23 01:18:50 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 4jXp4B5Dw0z71Tfr for ; Mon, 23 Nov 2026 01:18:50 +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 4jXp4B3zCcz4c0C for ; Mon, 23 Nov 2026 01:18:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795396730; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rS7YxNrRjI6EPu4IgoMjXDw316m/InE2uk9mdP37hkM=; b=B0euwRJpbxEX3yhw4AgIIhWnkWrJ9jlY+d/qPrgRo78cpJVbPyzJFtoOc78f/UqEIL3+Ac ZYwDrhN9o43mWDms5JV1ygEt9p9ltiBotfXkkJPQ2gYguUDvlkdF1qOGowDUmd+vQloSOq O2jh93pLBQDPdanhufEQ3cXEfO/U87XkwBFaoQEJ+fZcQTCyp5GHnhegM/jcWsVEwHEM+7 5VutOqcE3K684ZNeEeCvB2advyhEmeK3IY0AEA2K7DUyuXYfveo0uwX6MM7dQbKj61qZVL grdfPzB2oKjhwQNVIE5KHqfrg+dV6HLEqyGIyTHbWpqX8o08ds7dcM5dEYN5wg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795396730; b=kBS0fs0nd4DXs1SXtBk1mbTrCK/wnH4JNFibf7EVyTKnwoIeQ0f4mBFKu8VV0hXVhD+rqp Ax7drGevtf/XbywlP2oVpOGAQ7tUZ8Qd6SF0Uk8c/fjU9iEowZFAjEUjxpAlfXHcF2km2x UvDfNqz/gBuI3ePOYDbcZb9LpS6D3VWdOuRf4L8wBAzhxleZtuP7ufpNhXOpUkUZbq/OpZ NKk2Os+wxNCoUfXTVvpw10TZWCnavuEabpk3Z2CIJ/SpjFsP5d5Zdzo5UQzoJ56rtzJwdf cMZcSOdvfrYQC8JagETxLBLBxbzeqPJWVPfd5AN4QtFTlZMvUhA88xLUFPfdsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795396730; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rS7YxNrRjI6EPu4IgoMjXDw316m/InE2uk9mdP37hkM=; b=MiWTyEHYGlBWo/Ptcf5ykZ+qP4UjRd/TO2rKTzVmqa0CW0pI5uQQ28yIgmRZipDaLtS0T6 PsyvVTuLV2+FOEdi/FzSGJj6dTp267FfqFd1HUBeLNVI9iLXLzfDFSn+T4Yv4fzFtGskCB 1BZBHK5peeL7MBpcpYaHhzCKUEyDg48xpFC8g2Z9+LGgRo/hbkNlwFNacBrfGSjc74jrfx 817TIQXdmDBzOPEJK+X7ASnwIC3Mj8QeZMTvhi1cMwI+pRddIt8vEs4I/8KNVSmTEefl8L mG38mb5w88or3GhWCUWGok8xaVeR7kMmmR0ZfJGa4d7/Ks+w41Lu+4OBzOIQ6g== 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 4jXp4B1vN7zSbd for ; Mon, 23 Nov 2026 01:18:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id f35 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 23 Nov 2026 01:18:50 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Siva Mahadevan From: Enji Cooper Subject: git: 281f1610f178 - stable/15 - contrib/kyua: fix -Wshadow error 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: 281f1610f178192bb708083f768d5bf5135a2769 Auto-Submitted: auto-generated Date: Mon, 23 Nov 2026 01:18:50 +0000 Message-Id: <6b03947a.f35.51005ac7@gitrepo.freebsd.org> The branch stable/15 has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=281f1610f178192bb708083f768d5bf5135a2769 commit 281f1610f178192bb708083f768d5bf5135a2769 Author: Siva Mahadevan AuthorDate: 2026-09-05 14:12:11 +0000 Commit: Enji Cooper CommitDate: 2026-11-23 01:17:41 +0000 contrib/kyua: fix -Wshadow error This fixes the build with gcc 14: /usr/src/contrib/kyua/engine/prepare/prepare_all.cpp:56:16: error: declaration of 'handler' shadows a member of 'engine::prepare::prepare_all' [-Werror=shadow] 56 | for (auto& handler : prepare::handlers()) { | ^~~~~~~ In file included from /usr/src/contrib/kyua/engine/prepare/prepare_all.hpp:35, from /usr/src/contrib/kyua/engine/prepare/prepare_all.cpp:29: /usr/src/contrib/kyua/engine/prepare/prepare.hpp:51:15: note: shadowed declaration is here 51 | class handler { | ^ Fixes: edb230c4af499203d7a6894b3711fe6574b26040 Reviewed by: igoro, rlibby, ngie MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D59346 (cherry picked from commit a73bb621ca361edc678bbf49f3ca1acca8aa0344) --- contrib/kyua/engine/prepare/prepare_all.cpp | 6 +++--- contrib/kyua/os/freebsd/main.cpp | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/contrib/kyua/engine/prepare/prepare_all.cpp b/contrib/kyua/engine/prepare/prepare_all.cpp index db8ea330a51e..73591ef5822a 100644 --- a/contrib/kyua/engine/prepare/prepare_all.cpp +++ b/contrib/kyua/engine/prepare/prepare_all.cpp @@ -53,11 +53,11 @@ prepare::prepare_all::exec(cmdline::ui* ui, const cmdline::parsed_cmdline& cmdline, const config::tree& user_config) const { - for (auto& handler : prepare::handlers()) { - if (handler->name() == this->name()) + for (auto& h : prepare::handlers()) { + if (h->name() == this->name()) continue; - int error = handler->exec(ui, cmdline, user_config); + int error = h->exec(ui, cmdline, user_config); if (error != EXIT_SUCCESS) return error; } diff --git a/contrib/kyua/os/freebsd/main.cpp b/contrib/kyua/os/freebsd/main.cpp index 57e5cc8e8d97..1fe4fca8cae4 100644 --- a/contrib/kyua/os/freebsd/main.cpp +++ b/contrib/kyua/os/freebsd/main.cpp @@ -63,9 +63,6 @@ freebsd::main(const int, const char* const* const) prepare::register_handler( std::make_shared()); - - prepare::register_handler( - std::shared_ptr< prepare::handler >(new freebsd::prepare_kmods())); #endif return 0;