Patch Detail
Show a patch.
GET /api/patches/26582/?format=api
{ "id": 26582, "url": "https://patchwork.libcamera.org/api/patches/26582/?format=api", "web_url": "https://patchwork.libcamera.org/patch/26582/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20260428084550.91669-1-barnabas.pocze@ideasonboard.com>", "date": "2026-04-28T08:45:49", "name": "[v1,1/2] libcamera: base: regex: Fix preprocessor check", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "90901d07440be2851d53bdf009a9477db2a45fcc", "submitter": { "id": 216, "url": "https://patchwork.libcamera.org/api/people/216/?format=api", "name": "Barnabás Pőcze", "email": "barnabas.pocze@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/26582/mbox/", "series": [ { "id": 5890, "url": "https://patchwork.libcamera.org/api/series/5890/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5890", "date": "2026-04-28T08:45:49", "name": "[v1,1/2] libcamera: base: regex: Fix preprocessor check", "version": 1, "mbox": "https://patchwork.libcamera.org/series/5890/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/26582/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/26582/checks/", "tags": {}, "headers": { "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>", "X-Original-To": "parsemail@patchwork.libcamera.org", "Delivered-To": "parsemail@patchwork.libcamera.org", "Received": [ "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id DB2D8BE173\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 28 Apr 2026 08:45:56 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id D0AAA62FD0;\n\tTue, 28 Apr 2026 10:45:55 +0200 (CEST)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 287ED62FA1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 28 Apr 2026 10:45:54 +0200 (CEST)", "from pb-laptop.local (185.221.140.120.nat.pool.zt.hu\n\t[185.221.140.120])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 5F9D4D9B\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 28 Apr 2026 10:44:11 +0200 (CEST)" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"Hp1O4RSc\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1777365851;\n\tbh=ofHAixYwv7ybQEvEMPyGf8NJCimGtMDWZw50V3b2YGY=;\n\th=From:To:Subject:Date:From;\n\tb=Hp1O4RScr7jQTBjUarlQg54GEZgXyffCaP1Z0OrwEMggSch8cpwoVfRgEQg/xuQ0Z\n\tmvlbm4rkBatt3nN5OpXft/iT/vfVF6laMrqD5PNtqd5VqPDhtbAvnlLyYalCbJg+w3\n\tfzg2vKH4p3o+WOaa7uZa4AIy0uJ9t9CQQjtPcQCo=", "From": "=?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= <barnabas.pocze@ideasonboard.com>", "To": "libcamera-devel@lists.libcamera.org", "Subject": "[PATCH v1 1/2] libcamera: base: regex: Fix preprocessor check", "Date": "Tue, 28 Apr 2026 10:45:49 +0200", "Message-ID": "<20260428084550.91669-1-barnabas.pocze@ideasonboard.com>", "X-Mailer": "git-send-email 2.54.0", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "libcamera-devel@lists.libcamera.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "<libcamera-devel.lists.libcamera.org>", "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>", "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>", "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>", "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>", "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "clang has no `maybe-uninitialized` warning, therefore the suppression\nwill generate a compiler error. This was probably hidden by the fact that\n`__SANITIZE_*__` macros have only been added to clang since llvm 22.\n\nLink: https://github.com/llvm/llvm-project/commit/568c23bbd3303518c5056d7f03444dae4fdc8a9c\nFixes: b01918978c82 (\"libcamera: v4l2_subdevice: Work around false positive warning\")\nSigned-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>\n---\n include/libcamera/base/regex.h | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/include/libcamera/base/regex.h b/include/libcamera/base/regex.h\nindex 45f4da8cb..c80cca6fe 100644\n--- a/include/libcamera/base/regex.h\n+++ b/include/libcamera/base/regex.h\n@@ -8,7 +8,7 @@\n #include <libcamera/base/private.h>\n \n #pragma GCC diagnostic push\n-#if defined __SANITIZE_ADDRESS__ && defined __OPTIMIZE__\n+#if (defined(__GNUC__) && !defined(__clang__)) && defined __SANITIZE_ADDRESS__ && defined __OPTIMIZE__\n #pragma GCC diagnostic ignored \"-Wmaybe-uninitialized\"\n #endif\n #include <regex>\n", "prefixes": [ "v1", "1/2" ] }