From patchwork Wed Jan 7 19:36:02 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: 25682 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 BB66DBDCBF for ; Wed, 7 Jan 2026 19:36:16 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id F398461FC0; Wed, 7 Jan 2026 20:36:15 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="WJYw2niw"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 5A19261F84 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 4C249B7D; 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=40agxkfyPh/eSJH297SyKM6AZKqxQ7ndUP994bZ+Zs4=; h=From:To:Cc:Subject:Date:From; b=WJYw2niwiPnPfRDMqQKUUlQCD3DRLhpZfxXOtYnaSKW1Tbeb4U9AxMmgcqQ2EwuBK 3Ke4DIHHsaaB9Budj8zfb6smfSyenLIwU4QOlZu3F5LQ1JBVTLaeok7TQjLmL/zu+L ZAtslgIXhw2I6FFemXCaq4lmiAf8SL6higz/h+Hk= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org Cc: Naushir Patuck Subject: [RFC PATCH v1 0/5] C++20 migration Date: Wed, 7 Jan 2026 20:36:02 +0100 Message-ID: <20260107193607.2168539-1-barnabas.pocze@ideasonboard.com> X-Mailer: git-send-email 2.52.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" This is a proof of concept patch set containing the changes needed to make the current CI jobs succeed with cpp_std=c++20. There is still at least one issue that seemingly only appears in C++20, and which needs more analysis and testing: https://gitlab.freedesktop.org/camera/libcamera/-/issues/267 Barnabás Pőcze (5): gstreamer: Add `-Wno-volatile` for GCC meson: Ignore `Wredundant-move` with GCC 11 and above libcamera: base: log: Ignore deprecations treewide: Use character literal instead of string in some cases meson: Switch to C++20 meson.build | 4 ++-- src/gstreamer/meson.build | 7 +++++++ src/libcamera/base/log.cpp | 17 +++++++++++------ src/libcamera/media_pipeline.cpp | 6 +++--- src/libcamera/pipeline/simple/simple.cpp | 6 +++--- 5 files changed, 26 insertions(+), 14 deletions(-) --- 2.52.0