From patchwork Wed Jan 7 19:36:05 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: 25685 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 8D4D8BDCBF for ; Wed, 7 Jan 2026 19:36:20 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8C33C61FC7; Wed, 7 Jan 2026 20:36:17 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="MOS3ZdUv"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D1AD061FBB for ; Wed, 7 Jan 2026 20:36:13 +0100 (CET) Received: from pb-laptop.local (185.221.143.114.nat.pool.zt.hu [185.221.143.114]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 06D5A180F; Wed, 7 Jan 2026 20:35:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1767814552; bh=vvfwxztFIEYLUbdWq+BvDLroLOUqJalhjOohUNL/AzQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MOS3ZdUvb4kJOX1uQTccHckfKnskwCSdOSRMqvLuk7DxbPL6KdXES3FuNxg5wc6MG 2WvLAovkD0WiayYQ4cL7lmS8NLaVxWYrZ4YaumEBv4Vx9uBivZ0aTZKRM11uKux7YK z4YKNtTLV3RBNTUcexzLG63WnF/xJQQVm1h8ApK0= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org Cc: Naushir Patuck Subject: [RFC PATCH v1 3/5] libcamera: base: log: Ignore deprecations Date: Wed, 7 Jan 2026 20:36:05 +0100 Message-ID: <20260107193607.2168539-4-barnabas.pocze@ideasonboard.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260107193607.2168539-1-barnabas.pocze@ideasonboard.com> References: <20260107193607.2168539-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" `std::atomic_{load,store}()` with `std::shared_ptr` has been deprecated in C++20 in favour of `std::atomic>`. However, it is not available on all supported platforms. So ignore the deprecation warnings. Signed-off-by: Barnabás Pőcze Reviewed-by: Laurent Pinchart --- src/libcamera/base/log.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libcamera/base/log.cpp b/src/libcamera/base/log.cpp index 6e6d2887c..b28217750 100644 --- a/src/libcamera/base/log.cpp +++ b/src/libcamera/base/log.cpp @@ -326,6 +326,11 @@ private: std::vector> categories_ LIBCAMERA_TSA_GUARDED_BY(mutex_); std::list> levels_; + /* + * \todo Use `std::atomic>` and drop the pragma + * once it works on all supported platforms. + */ +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" std::shared_ptr output_; };