From patchwork Wed Jan 7 19:36:04 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: 25684 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 0C7AEC323E 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 00C5961FC1; 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="cjnj7+rc"; 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 982A261FA3 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 C83E417EB; Wed, 7 Jan 2026 20:35:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1767814551; bh=PJADmIcMVYSsK4UjaXq88z8n4mzdxSyj+P696Zi1wz8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cjnj7+rcR1eYOh0AKP8o23NiU1NI/CUszN8vD3xjy7yDUJAtkrY32r4ZlP1mWvkxg A7tRj/ilBjAH+zxxHCN4wMa8+b4dClxDsLTIA+KkIlSn9dNQ2ctEVt3qL2AZG0lsdo 24zwoTxlegJs8rqxOddSy7tr3rJHfRX3pIJOUZ2U= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org Cc: Naushir Patuck Subject: [RFC PATCH v1 2/5] meson: Ignore `Wredundant-move` with GCC 11 and above Date: Wed, 7 Jan 2026 20:36:04 +0100 Message-ID: <20260107193607.2168539-3-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" In C++20 mode, object slicing in a return statement triggers automatic move since GCC 11, and using `std::move()` emits `-Wredundant-move` in those same GCC versions. So disable the warning in those as well. This is relevant for `valueOrTuple()` in `py_helpers.cpp`, which returns a `py::tuple` as `py::object`. Signed-off-by: Barnabás Pőcze --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 4aa7ecc96..1d8e1d994 100644 --- a/meson.build +++ b/meson.build @@ -168,7 +168,7 @@ if cc.get_id() == 'gcc' # disable the warning. With -Wpessimizing-move enabled, the compiler will # still warn of pessimizing moves, only the redundant but not pessimizing # moves will be ignored. - if cc.version().version_compare('>=13') + if cc.version().version_compare('>=11') cpp_arguments += [ '-Wno-redundant-move', ]