From patchwork Wed Nov 29 16:07:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brett Brotherton X-Patchwork-Id: 19246 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 5EDA8C31E9 for ; Wed, 29 Nov 2023 16:09:03 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id A47E1629C2; Wed, 29 Nov 2023 17:09:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1701274142; bh=mKFxOEbwlAkRu4YHf8cosw/2ZO3ItEd1PxFCYOE9f8U=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=1ha8+zO/6UOY8Zod34RXZWWtguSJpUDWCc7MNAlwfVvrB2eWBdaFFi8X1MJ6TO/qa ZxtMmfNt92o6hBpOxYSkLotCnUWYN0uE/bD2K6m7UDzX89XvNVn0si0nXIs8sxnF8n xEXXwTUZVJolmwTR3mT+alcqDeFQFTxSVsz2ua5vKpDbMz4bmdobKEHJViinjM6iVh PJzzXd52Sf8z5U+A1sAc5B1nlJJE61tZ72FfW3BFc8bL2OImZjKL5zZ2NEheUSekSX cabVeATmwyYWVUoMFx7aOFYka5ATWMNMZK4Qm41FkzqgpbiQBJBQYN8V0zFEEO4UqG OTMHaCbd4rjxA== Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 14C3961DA8 for ; Wed, 29 Nov 2023 17:09:01 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="Sec711f3"; dkim-atps=neutral Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-db4004a8aa9so7930949276.1 for ; Wed, 29 Nov 2023 08:09:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701274140; x=1701878940; darn=lists.libcamera.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=RJbGtPmruI7s2SROQdEAcjnknxp8YyW6h2owVRpJMCQ=; b=Sec711f3QOHpv45q3gIYE2k0dMWayQM4M+78Em3quJMVNSw4x1isMeS+po3NhLmCqi eXyQyiGhZeWaYGRelVonlhaMyGCKoHzC9o92F6m7xyr6g/Tt25+TFrcDUBNlDbLGGdJW aFkNw0pC5Jx2EOZWlYyZi37ENv/uFnlXpz2jRDWOwe/9FJIgnE2Fs+/7xmoVseev9cbB clLuAJqD/i+J67rNKtWYG6C+77G89med/oe52RfUh/Zv8rxOXkAy2be6X3g6+Qz8zFXw rQDZHOTRLSxIAlqPXoNw8SUQu9sgZLbQ96wW+/aM4hAj3rP7/phn2ulWXjMQRtFAZ/zA X6gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701274140; x=1701878940; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=RJbGtPmruI7s2SROQdEAcjnknxp8YyW6h2owVRpJMCQ=; b=kWRYYGwYD+YTrB/t+LNRRfQGdChl2F4WTCASsT+uzqB9bFOE8ZTBtgfkXDKdKCkctN IFssCwsB2g7gYKnN+bsexmd+KZGmn9HvPzamwYLiUrIE4dy9vS9dxE2mJCa8Z/SDK0DK GH3ssgMY2x37+6JJwmN7W+POALEC0XOv+BjBrfrdBEPeh+no1+Qi2YduWClpTupJsXb5 mtI6O/zku8wbD5+d7o1LS9V+/UZP/vuJ2PIIjbNDABcJ6sNZWyjf+DUwMuBLKvZPOIrZ WvSUarCp6z6MSp2THg0gShHU7ZaX+HtsNqUuezIYSS+osSoSYTmfVFljznQtqvHKW9h8 fFjw== X-Gm-Message-State: AOJu0YwGEyDfg6eiDEOV2brzQarhG1tKkhr0eO87LjNm8+dtTYk3e6Xr xjiGnDqzELp9AdvzpqXJOZQQve/YiM3dmOws3BioahV0ymYFX/XfDRt7vD5vZqROIF8cs33xdHG iH1JjtUlXXp3zvMEYTqs+X0jE3W9T0fFBS6ithJYAkxVCttRx5blq7patrdz4duikf5x3N6BZQc LO2oKg3qFP3pK8a7Ay X-Google-Smtp-Source: AGHT+IFQADkC+vKk2op29ohZ/hO3yEd0n7H9oQGTASwnV6WCWGNNt6C6G5s/54e+uY/TJEwRyj+QxmGtJ6SucKEE1A== X-Received: from bbrotherton-ws.bld.corp.google.com ([2620:15c:183:200:1044:db30:1b61:3292]) (user=bbrotherton job=sendgmr) by 2002:a25:6f8b:0:b0:db3:f436:5714 with SMTP id k133-20020a256f8b000000b00db3f4365714mr625918ybc.0.1701274139619; Wed, 29 Nov 2023 08:08:59 -0800 (PST) Date: Wed, 29 Nov 2023 09:07:45 -0700 Mime-Version: 1.0 X-Mailer: git-send-email 2.43.0.rc1.413.gea7ed67945-goog Message-ID: <20231129160853.1081623-1-bbrotherton@google.com> To: libcamera-devel@lists.libcamera.org Subject: [libcamera-devel] [PATCH v3] libcamera: pipeline: Fix c++20 compile warning 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: , X-Patchwork-Original-From: Brett Brotherton via libcamera-devel From: Brett Brotherton Reply-To: Brett Brotherton Cc: Brett Brotherton Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Fix -Wdeprecated-this-capture error when building with c++20 by explicity naming this in the capture. Signed-off-by: Brett Brotherton --- Sorry about that here is updated patch that orrects formatting in the commit message. src/libcamera/pipeline_handler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcamera/pipeline_handler.cpp b/src/libcamera/pipeline_handler.cpp index 9c74c6cf..29e0c98a 100644 --- a/src/libcamera/pipeline_handler.cpp +++ b/src/libcamera/pipeline_handler.cpp @@ -649,7 +649,7 @@ void PipelineHandler::registerCamera(std::shared_ptr camera) */ void PipelineHandler::hotplugMediaDevice(MediaDevice *media) { - media->disconnected.connect(this, [=]() { mediaDeviceDisconnected(media); }); + media->disconnected.connect(this, [this, media] { mediaDeviceDisconnected(media); }); } /**