From patchwork Tue May 19 10:54:42 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Klug X-Patchwork-Id: 26779 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 6A8AABDCBD for ; Tue, 19 May 2026 10:56:36 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 72F9C63024; Tue, 19 May 2026 12:56:35 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="W1j2Z+Fe"; 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 7758D62DC4 for ; Tue, 19 May 2026 12:56:33 +0200 (CEST) Received: from ideasonboard.com (unknown [IPv6:2a01:cb1d:8f2:800:8615:9d6a:baf:6847]) by perceval.ideasonboard.com (Postfix) with UTF8SMTPSA id 1D204296; Tue, 19 May 2026 12:56:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1779188180; bh=xrWscAxclN/fxtCIelx/pubHcgsEzlKFUtvQgFZ2kjM=; h=From:To:Cc:Subject:Date:From; b=W1j2Z+FexbKDP1N5zpE6BFzkIAjd2GcQMxmpBO4T6pir2xXfJBrefaipdcNlIO3QJ jUc9bHWE1AhOc6YO52Eb+TILotCTqok3c0OSZyd41DZ06ptrBGdRYqu4qjHVvF7rMU 7jTEwarB31xxJ1EFThXs4mnq1e6n4gCQNh0ezSGA= From: Stefan Klug To: libcamera-devel@lists.libcamera.org Cc: Stefan Klug Subject: [RFC PATCH] py: Drop redundant std::move Date: Tue, 19 May 2026 12:54:42 +0200 Message-ID: <20260519105628.1792018-1-stefan.klug@ideasonboard.com> X-Mailer: git-send-email 2.51.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" With gcc 14.3.0 I hit -Werror=redundant-move on that line. Drop the unnecessary move. Signed-off-by: Stefan Klug --- src/py/libcamera/py_helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/py/libcamera/py_helpers.cpp b/src/py/libcamera/py_helpers.cpp index b9142225c0b1..2c8e15d08c0c 100644 --- a/src/py/libcamera/py_helpers.cpp +++ b/src/py/libcamera/py_helpers.cpp @@ -25,7 +25,7 @@ static py::object valueOrTuple(const ControlValue &cv) for (size_t i = 0; i < cv.numElements(); ++i) t[i] = v[i]; - return std::move(t); + return t; } return py::cast(cv.get());