From patchwork Tue Apr 28 08:45:49 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: 26582 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 DB2D8BE173 for ; Tue, 28 Apr 2026 08:45:56 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id D0AAA62FD0; Tue, 28 Apr 2026 10:45:55 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Hp1O4RSc"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 287ED62FA1 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 5F9D4D9B 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=ofHAixYwv7ybQEvEMPyGf8NJCimGtMDWZw50V3b2YGY=; h=From:To:Subject:Date:From; b=Hp1O4RScr7jQTBjUarlQg54GEZgXyffCaP1Z0OrwEMggSch8cpwoVfRgEQg/xuQ0Z mvlbm4rkBatt3nN5OpXft/iT/vfVF6laMrqD5PNtqd5VqPDhtbAvnlLyYalCbJg+w3 fzg2vKH4p3o+WOaa7uZa4AIy0uJ9t9CQQjtPcQCo= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org Subject: [PATCH v1 1/2] libcamera: base: regex: Fix preprocessor check Date: Tue, 28 Apr 2026 10:45:49 +0200 Message-ID: <20260428084550.91669-1-barnabas.pocze@ideasonboard.com> X-Mailer: git-send-email 2.54.0 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" clang has no `maybe-uninitialized` warning, therefore the suppression will generate a compiler error. This was probably hidden by the fact that `__SANITIZE_*__` macros have only been added to clang since llvm 22. Link: https://github.com/llvm/llvm-project/commit/568c23bbd3303518c5056d7f03444dae4fdc8a9c Fixes: b01918978c82 ("libcamera: v4l2_subdevice: Work around false positive warning") Signed-off-by: Barnabás Pőcze --- include/libcamera/base/regex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libcamera/base/regex.h b/include/libcamera/base/regex.h index 45f4da8cb..c80cca6fe 100644 --- a/include/libcamera/base/regex.h +++ b/include/libcamera/base/regex.h @@ -8,7 +8,7 @@ #include #pragma GCC diagnostic push -#if defined __SANITIZE_ADDRESS__ && defined __OPTIMIZE__ +#if (defined(__GNUC__) && !defined(__clang__)) && defined __SANITIZE_ADDRESS__ && defined __OPTIMIZE__ #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" #endif #include 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) {