Show a patch.

GET /api/1.1/patches/25684/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 25684,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/25684/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/25684/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/1.1/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": "<20260107193607.2168539-3-barnabas.pocze@ideasonboard.com>",
    "date": "2026-01-07T19:36:04",
    "name": "[RFC,v1,2/5] meson: Ignore `Wredundant-move` with GCC 11 and above",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "378a721ff53a8adc5fd32ee6996e7dcc06a7810f",
    "submitter": {
        "id": 216,
        "url": "https://patchwork.libcamera.org/api/1.1/people/216/?format=api",
        "name": "Barnabás Pőcze",
        "email": "barnabas.pocze@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/25684/mbox/",
    "series": [
        {
            "id": 5694,
            "url": "https://patchwork.libcamera.org/api/1.1/series/5694/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5694",
            "date": "2026-01-07T19:36:02",
            "name": "C++20 migration",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/5694/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/25684/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/25684/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 0C7AEC323E\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed,  7 Jan 2026 19:36:20 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 00C5961FC1;\n\tWed,  7 Jan 2026 20:36:17 +0100 (CET)",
            "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 982A261FA3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed,  7 Jan 2026 20:36:13 +0100 (CET)",
            "from pb-laptop.local (185.221.143.114.nat.pool.zt.hu\n\t[185.221.143.114])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id C83E417EB;\n\tWed,  7 Jan 2026 20:35:51 +0100 (CET)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"cjnj7+rc\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1767814551;\n\tbh=PJADmIcMVYSsK4UjaXq88z8n4mzdxSyj+P696Zi1wz8=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=cjnj7+rcR1eYOh0AKP8o23NiU1NI/CUszN8vD3xjy7yDUJAtkrY32r4ZlP1mWvkxg\n\tA7tRj/ilBjAH+zxxHCN4wMa8+b4dClxDsLTIA+KkIlSn9dNQ2ctEVt3qL2AZG0lsdo\n\t24zwoTxlegJs8rqxOddSy7tr3rJHfRX3pIJOUZ2U=",
        "From": "=?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= <barnabas.pocze@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Cc": "Naushir Patuck <naush@raspberrypi.com>",
        "Subject": "[RFC PATCH v1 2/5] meson: Ignore `Wredundant-move` with GCC 11 and\n\tabove",
        "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",
        "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": "In C++20 mode, object slicing in a return statement triggers automatic move\nsince GCC 11, and using `std::move()` emits `-Wredundant-move` in those\nsame GCC versions. So disable the warning in those as well.\n\nThis is relevant for `valueOrTuple()` in `py_helpers.cpp`, which\nreturns a `py::tuple` as `py::object`.\n\nSigned-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>\n---\n meson.build | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/meson.build b/meson.build\nindex 4aa7ecc96..1d8e1d994 100644\n--- a/meson.build\n+++ b/meson.build\n@@ -168,7 +168,7 @@ if cc.get_id() == 'gcc'\n     # disable the warning. With -Wpessimizing-move enabled, the compiler will\n     # still warn of pessimizing moves, only the redundant but not pessimizing\n     # moves will be ignored.\n-    if cc.version().version_compare('>=13')\n+    if cc.version().version_compare('>=11')\n         cpp_arguments += [\n             '-Wno-redundant-move',\n         ]\n",
    "prefixes": [
        "RFC",
        "v1",
        "2/5"
    ]
}