From patchwork Tue Apr 28 08:45:50 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= X-Patchwork-Id: 26583 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 64988C32F6 for ; Tue, 28 Apr 2026 08:45:58 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 829E062FC8; Tue, 28 Apr 2026 10:45:56 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="gvjrLX/K"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 4ED9162FC2 for ; Tue, 28 Apr 2026 10:45:54 +0200 (CEST) Received: from pb-laptop.local (185.221.140.120.nat.pool.zt.hu [185.221.140.120]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 96105E91 for ; Tue, 28 Apr 2026 10:44:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1777365851; bh=LiT5m6l1GyfANs/VKLVfm12wXIflCYIvci3RaxHBlEg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gvjrLX/KT+QYS0Iei/T82MvvbxzFYHocIHjjGMkv2VnHoHc/x8BCPIrLEDHxtEIm5 1cNiNpCLVdGbMwSIoLukICRTkjl2gHvPcBJN/zuTBEKfcvuigHQY0evq6gRUW69/CZ /r+uHOTbKDfVBXwR7XowEJYxw+7B/Egr4miw90Iw= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org Subject: [PATCH v1 2/2] test: controls: control_info_map: Fix libc++ warning Date: Tue, 28 Apr 2026 10:45:50 +0200 Message-ID: <20260428084550.91669-2-barnabas.pocze@ideasonboard.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260428084550.91669-1-barnabas.pocze@ideasonboard.com> References: <20260428084550.91669-1-barnabas.pocze@ideasonboard.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Since llvm 22, libc++ has made `std::unordered_map::at()` have the `nodiscard` attribute, leading to warnings, fix that with `std::ignore`. Link: https://github.com/llvm/llvm-project/commit/9a03a30706cca40b93146f379fb5faa75d417af5 Signed-off-by: Barnabás Pőcze --- test/controls/control_info_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/controls/control_info_map.cpp b/test/controls/control_info_map.cpp index b0be14b58..6c20ee8d0 100644 --- a/test/controls/control_info_map.cpp +++ b/test/controls/control_info_map.cpp @@ -49,7 +49,7 @@ protected: return TestFail; } - infoMap.at(&controls::Brightness); + std::ignore = infoMap.at(&controls::Brightness); /* Test looking up a valid control by numerical ID. */ if (infoMap.count(controls::Brightness.id()) != 1) {