From patchwork Tue Apr 30 19:26:21 2024 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: 19975 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 F20D5BE08B for ; Tue, 30 Apr 2024 19:26:38 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id A36C06341A; Tue, 30 Apr 2024 21:26:38 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=protonmail.com header.i=@protonmail.com header.b="JUqynCbj"; dkim-atps=neutral Received: from mail-40134.protonmail.ch (mail-40134.protonmail.ch [185.70.40.134]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C3DB8633F3 for ; Tue, 30 Apr 2024 21:26:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1714505195; x=1714764395; bh=BX3Pd0OsfhRIntEa8h7EWz3EI4d1HiD7KhBCpqr2BZ8=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=JUqynCbjoa3hzw8rQuZTvbZv/UhX57hranBiXe/2DgtCPrM58rlWWLnO4xZK14Pt4 KG7DM4w5SaerfXWqIU0ryivDKf4oInEomtgrtbrJI+RSWlboiYXrw7IXPm2V9lKFZx sZ/lcUPE1Ii9VeH77fxQPsKhz0WiDe7QjC00n+ZfHbJ5H2ScOydP6UUvnaUPvb+uGt 3W+ZVfZEoVL17C6IJ+iseFXFukXgmy2HT+g2++I2h/twgZG4fHil7WpdUbcVqN+t1V aapyyVF4cadbX7khQPki4EutmKotd65cR1taz0IBauEm0KOS1EIsCNRkBFMbMwMaRx go6TwG8IchGvw== Date: Tue, 30 Apr 2024 19:26:21 +0000 To: libcamera-devel@lists.libcamera.org From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= Subject: [PATCH v1] apps: cam: Fix C++20 deprecation warning Message-ID: <20240430192620.779489-1-pobrn@protonmail.com> Feedback-ID: 20568564:user:proton X-Pm-Message-ID: 3a3957cfe84f53638b737ae3739a89c8f41966ca 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" C++20 deprecated implicit capture of `this` via `[=]`. Fix that by explicitly capturing the necessary variables. Signed-off-by: Barnabás Pőcze Reviewed-by: Laurent Pinchart Reviewed-by: Umang Jain --- src/apps/cam/camera_session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/cam/camera_session.cpp b/src/apps/cam/camera_session.cpp index 334d2ed8..d1f65a99 100644 --- a/src/apps/cam/camera_session.cpp +++ b/src/apps/cam/camera_session.cpp @@ -382,7 +382,7 @@ void CameraSession::requestComplete(Request *request) * Defer processing of the completed request to the event loop, to avoid * blocking the camera manager thread. */ - EventLoop::instance()->callLater([=]() { processRequest(request); }); + EventLoop::instance()->callLater([this, request]() { processRequest(request); }); } void CameraSession::processRequest(Request *request)