From patchwork Mon Nov 13 16:52:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brett Brotherton X-Patchwork-Id: 19208 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 D1180BDE6B for ; Mon, 13 Nov 2023 18:08:13 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 3AA4C629BC; Mon, 13 Nov 2023 19:08:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1699898893; bh=k+VUAaJ9MHeliVkF1oj3Fd+vNppti6pW6hUdGNFIcAY=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=RhsPrGi4Bc2AAQRFlmSzmtKM/Ml5SkT9UXwkVkxyS3zrqmiZwTWWEKY/NaRPicxhs 8dNKljrIsgS+sTEiTzvGF3Pj6krWqI0LAnupR8uSuPyh9BBho6C+sLJgBYDR1dtCjb EjJI+QFFRUymp9DpEYuOdJ1I86M16qTc/YuzHYPqEmhSc0BkJOtH185aEohr4LLMdT Q1tfbSzqQlPmPvo/fVFoX0yYdDHo+BBYDiVYKBw7m/2EPIix2JyNMLGxTNWjC22CBm e0Sxypf4oauV7NdxnaRc45N1MPy6BedGv48kJ8uVW9MiX8c1aMXD6bgehRUW6dB44w rHt+P7yjCZpfg== Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 174A1629A9 for ; Mon, 13 Nov 2023 17:52:51 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="sBkJHZDg"; dkim-atps=neutral Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-5b02ed0f886so65107207b3.0 for ; Mon, 13 Nov 2023 08:52:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1699894369; x=1700499169; darn=lists.libcamera.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=yE/zVCqVkqbFBjaA5vxIIWwj2mesrlsKe5E9GsDJqbg=; b=sBkJHZDge9MzOAk8xZJ6mhgP90txERz/DMgPw61kKgWlTmqamhGxsbZkUxCiy8CDm9 THK0WdilIsgijQIFaaHM3HZ4wmGIesa5s6e7p42l8ogpt+jZff+prgLiLrD7wfhSuykD VYWrsitExivkz/ktHW3JaMJTGhRezl86CKoOcR2GooFBt+/c/HNM8DX4KX17RJFs8lgE NkOMSE9kTlzPLFF4J7u5pCtIfuZR5pIwBEuc6e6h03IC2JwtcdnxQk55klF4Gur/K+Lc b+6NlyHD0b//GvYbkt5OMwG420nhy32siBBY0RfS1KFLbTfLLaRV3+K8CEH0aAiVY+3T wfoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699894369; x=1700499169; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=yE/zVCqVkqbFBjaA5vxIIWwj2mesrlsKe5E9GsDJqbg=; b=iiAN9L0YDKNaPFVJuc+g+BpI2CGEkbGpgKJKNqzCbXZfzn20yrB1mOW/GyxZrgBXVo lgASDbjuQGARECgSUye1WLMyCea6GzdDp1B9PECvdLNXDfUyYD2DHMPcPBXMLgBuZsPv N1r13yLIBAdqzS5SFXTf5d2TXzbMlxDcgkIeMvQ9/WRkqIZuvEkokqvI1Ra03hLPCZbm PTd9qiHMtcO5rZgnXAl1Mm/51BLEvtq8tAErOAMSVzjapA/1k4B9+Q7VCv+JoISKMcIP U0R4nqwYQucQJWCZMtUtFzJbmDz0SZzHx1HTK/yWG7IiCEncWvFym8mGnpYqAx9TTpSD jeAA== X-Gm-Message-State: AOJu0YxI7/rboueCKsTCM36KUI7wo8DdgmUWTQvvAvel89JvmFZWsigE KSw/4msMmuJIXiI1vgAs3JZM+hH0ATk1kRkCLJaVZSbqK7n9o1Fgbq2j66VXSI0TDK2TALgXppa I5/agWocZXGk3zK/lyh3XuzV4kQCla6ooUkVmKJoAdpjqkUBsokRZhWbxmZyymBVYx2GeBlcOk5 YWDnRkS7hkOsxAFGmi X-Google-Smtp-Source: AGHT+IF4+yLW5GlHuf6bTu5eaese9JQgzz9KkUaRXwQV3qawI8aGLZkwGIfsvacYoewreLQ/SvB2QBB+PtnnOs+DFA== X-Received: from bbrotherton-ws.bld.corp.google.com ([2620:15c:183:200:b8fd:14d6:388a:4a8]) (user=bbrotherton job=sendgmr) by 2002:a25:9e0e:0:b0:d9a:5b63:a682 with SMTP id m14-20020a259e0e000000b00d9a5b63a682mr184787ybq.13.1699894369394; Mon, 13 Nov 2023 08:52:49 -0800 (PST) Date: Mon, 13 Nov 2023 09:52:44 -0700 Mime-Version: 1.0 X-Mailer: git-send-email 2.42.0.869.gea05f2083d-goog Message-ID: <20231113165244.480925-1-bbrotherton@google.com> To: libcamera-devel@lists.libcamera.org X-Mailman-Approved-At: Mon, 13 Nov 2023 19:08:12 +0100 Subject: [libcamera-devel] [PATCH] 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 Reviewed-by: Laurent Pinchart --- 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..2220cb92 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]() { mediaDeviceDisconnected(media); }); } /**