Show a patch.

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

{
    "id": 1294,
    "url": "https://patchwork.libcamera.org/api/patches/1294/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/1294/",
    "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": "<20190527001543.13593-2-niklas.soderlund@ragnatech.se>",
    "date": "2019-05-27T00:15:27",
    "name": "[libcamera-devel,01/17] meson: Allow partially initializing objects",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "09e5254e698095e9c1bdea11976f8eb6596eccbc",
    "submitter": {
        "id": 5,
        "url": "https://patchwork.libcamera.org/api/people/5/?format=api",
        "name": "Niklas Söderlund",
        "email": "niklas.soderlund@ragnatech.se"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/1294/mbox/",
    "series": [
        {
            "id": 328,
            "url": "https://patchwork.libcamera.org/api/series/328/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=328",
            "date": "2019-05-27T00:15:28",
            "name": "libcamera: Add support for format information and validation",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/328/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/1294/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/1294/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<niklas.soderlund@ragnatech.se>",
        "Received": [
            "from bin-mail-out-05.binero.net (bin-mail-out-05.binero.net\n\t[195.74.38.228])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 2FE75618F5\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 27 May 2019 02:16:07 +0200 (CEST)",
            "from bismarck.berto.se (unknown [89.233.230.99])\n\tby bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA\n\tid 9c98fd1f-8014-11e9-8ab4-005056917a89;\n\tMon, 27 May 2019 02:16:02 +0200 (CEST)"
        ],
        "X-Halon-ID": "9c98fd1f-8014-11e9-8ab4-005056917a89",
        "Authorized-sender": "niklas@soderlund.pp.se",
        "From": "=?utf-8?q?Niklas_S=C3=B6derlund?= <niklas.soderlund@ragnatech.se>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Mon, 27 May 2019 02:15:27 +0200",
        "Message-Id": "<20190527001543.13593-2-niklas.soderlund@ragnatech.se>",
        "X-Mailer": "git-send-email 2.21.0",
        "In-Reply-To": "<20190527001543.13593-1-niklas.soderlund@ragnatech.se>",
        "References": "<20190527001543.13593-1-niklas.soderlund@ragnatech.se>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH 01/17] meson: Allow partially initializing\n\tobjects",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.23",
        "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>",
        "X-List-Received-Date": "Mon, 27 May 2019 00:16:08 -0000"
    },
    "content": "There are valid use-cases where one might wish to partially initialize a\nstructure when creating it without needing to initialize all members.\nThis is especially common when working with V4L2.\n\nstruct foo {\n    int bar;\n    int baz;\n};\n\nstruct foo f = {\n    .bar = 1;\n};\n\nWithout -Wno-missing-field-initializers fails to compile with the error,\n\n    error: missing initializer for member ‘foo::baz’ [-Werror=missing-field-initializers]\n\nSigned-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>\n---\n meson.build | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/meson.build b/meson.build\nindex 4d3e99d3e58f71d5..90ad58328f9a2bd5 100644\n--- a/meson.build\n+++ b/meson.build\n@@ -22,6 +22,7 @@ endif\n \n common_arguments = [\n     '-Wno-unused-parameter',\n+    '-Wno-missing-field-initializers',\n     '-include', 'config.h',\n ]\n \n",
    "prefixes": [
        "libcamera-devel",
        "01/17"
    ]
}