From patchwork Fri Feb 20 14:12:16 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: 26214 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 95453C0DA4 for ; Fri, 20 Feb 2026 14:12:23 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id A592F6226A; Fri, 20 Feb 2026 15:12:22 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="hvCa28hq"; 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 A7CB861FBF for ; Fri, 20 Feb 2026 15:12:20 +0100 (CET) Received: from pb-laptop.local (185.221.141.206.nat.pool.zt.hu [185.221.141.206]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 95CDF502 for ; Fri, 20 Feb 2026 15:11:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1771596686; bh=yNnAWrjT1SNqEuOSzzS7+5jnGGt27MXuF3kLtwtA4AE=; h=From:To:Subject:Date:From; b=hvCa28hq7/g0BwMs1a5E4EqAn5AQ9aEHsWpDKCOZvr6xvIRkBrNShGMnTR12WUD0G 6QB9LL7ViSt1fYDRFpDJW0GG9DfE7hhO9WTg7WKE/xeDyjqlXovBnrIPmuE7xTk1mc Kfm8Cc0gw0TQIQtZbLwQyWVArlrkcP2U7yo8SaWs= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org Subject: [PATCH v1] py: Disable `-Winvalid-offsetof` Date: Fri, 20 Feb 2026 15:12:16 +0100 Message-ID: <20260220141216.195395-1-barnabas.pocze@ideasonboard.com> X-Mailer: git-send-email 2.53.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" A "small vector" implementation has been introduced in the latest version of pybind11 (3.0.2), which might `offsetof()` on a non standard layout type. This triggers the `invalid-offsetof` warning. So disable it for the python binding. Link: https://github.com/pybind/pybind11/pull/5824 Signed-off-by: Barnabás Pőcze Reviewed-by: Laurent Pinchart --- src/py/libcamera/meson.build | 1 + 1 file changed, 1 insertion(+) -- 2.53.0 diff --git a/src/py/libcamera/meson.build b/src/py/libcamera/meson.build index b0bd291fa..6c3b66bc5 100644 --- a/src/py/libcamera/meson.build +++ b/src/py/libcamera/meson.build @@ -53,6 +53,7 @@ pycamera_deps = [ pycamera_args = [ '-fvisibility=hidden', + '-Wno-invalid-offsetof', '-Wno-shadow', '-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT', ]