get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2196926,
    "url": "http://patchwork.ozlabs.org/api/patches/2196926/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/aZM1a6Qfw41pemdC@fkdesktop.suse.cz/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/projects/17/?format=api",
        "name": "GNU Compiler Collection",
        "link_name": "gcc",
        "list_id": "gcc-patches.gcc.gnu.org",
        "list_email": "gcc-patches@gcc.gnu.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<aZM1a6Qfw41pemdC@fkdesktop.suse.cz>",
    "list_archive_url": null,
    "date": "2026-02-16T15:19:07",
    "name": "contrib/filter-clang-warnings.py: Ignore all .texi",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "a96981495b17216f4e8994305c3c217bd54b798d",
    "submitter": {
        "id": 87068,
        "url": "http://patchwork.ozlabs.org/api/people/87068/?format=api",
        "name": "Filip Kastl",
        "email": "fkastl@suse.cz"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/aZM1a6Qfw41pemdC@fkdesktop.suse.cz/mbox/",
    "series": [
        {
            "id": 492318,
            "url": "http://patchwork.ozlabs.org/api/series/492318/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=492318",
            "date": "2026-02-16T15:19:07",
            "name": "contrib/filter-clang-warnings.py: Ignore all .texi",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/492318/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2196926/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196926/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256\n header.s=susede2_rsa header.b=bBLgb0jI;\n\tdkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=DASg3N0X;\n\tdkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz\n header.a=rsa-sha256 header.s=susede2_rsa header.b=bBLgb0jI;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=DASg3N0X;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=38.145.34.32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)",
            "sourceware.org;\n\tdkim=pass (1024-bit key,\n unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256\n header.s=susede2_rsa header.b=bBLgb0jI;\n\tdkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=DASg3N0X;\n\tdkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz\n header.a=rsa-sha256 header.s=susede2_rsa header.b=bBLgb0jI;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=DASg3N0X",
            "sourceware.org;\n dmarc=none (p=none dis=none) header.from=suse.cz",
            "sourceware.org; spf=pass smtp.mailfrom=suse.cz",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=195.135.223.131",
            "smtp-out2.suse.de;\n\tnone"
        ],
        "Received": [
            "from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fF5zj0451z1xtN\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 17 Feb 2026 02:19:43 +1100 (AEDT)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id C17084BAD157\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 16 Feb 2026 15:19:41 +0000 (GMT)",
            "from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131])\n by sourceware.org (Postfix) with ESMTPS id 655234BA23F1\n for <gcc-patches@gcc.gnu.org>; Mon, 16 Feb 2026 15:19:10 +0000 (GMT)",
            "from imap1.dmz-prg2.suse.org (unknown [10.150.64.97])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-out2.suse.de (Postfix) with ESMTPS id 5CE285BDC7;\n Mon, 16 Feb 2026 15:19:09 +0000 (UTC)",
            "from imap1.dmz-prg2.suse.org (localhost [127.0.0.1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 247613EA62;\n Mon, 16 Feb 2026 15:19:09 +0000 (UTC)",
            "from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167])\n by imap1.dmz-prg2.suse.org with ESMTPSA id nIzmCG01k2n9XwAAD6G6ig\n (envelope-from <fkastl@suse.cz>); Mon, 16 Feb 2026 15:19:09 +0000"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org C17084BAD157",
            "OpenDKIM Filter v2.11.0 sourceware.org 655234BA23F1"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 655234BA23F1",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 655234BA23F1",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771255150; cv=none;\n b=PEDUzgEDW8BkWgaEXpuUShr5EE+sLk5IbrqNgP6vpo7l4R8wbFdNrIjCO58mI2L5IFYzkaV5+9st0c4rcLxh1UqiS+5kl0u923Uc3jOQDYKWT2t6tolN8xKDfft+Bti8FNy8cjI8dwCaqPzPvdBr+OlX52CoqFGi0uyvd1kogrU=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1771255150; c=relaxed/simple;\n bh=ZyUbcbcAY4D25CdhAQc+6DXH//D8towdfq6gnGglQ8c=;\n h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:Date:\n From:To:Subject:Message-ID:MIME-Version;\n b=KB5a7I7ZQCcfSyZYRBbvI4vK66IP2JxIXnkDGAbfkNtMj1hEEZ1wXkYrEaPnX4PIOzxx3vOZ1Z3j8b1xINR4h3nR3vRPnJx0iMiZhP8U3XFxx+X79Gqb7Nf9BMDcq87U/O+pIc8QErV5hXyPHOEYNeo2FjOiYtd2DFyDCrp+buo=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n t=1771255149;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type;\n bh=2boaR1wDPbRTae3eQdNU7KRcM538AVBLU5Y9CnB2VVA=;\n b=bBLgb0jI1c8KgNJ3pIsdk/Rhdkreygr0ftTTngyVzoT4/Z7K2P1VHNPCMPJRijBdrA3QO4\n hglKqeJ2flOaeuZmZYpTzqgx9XHYfVPYqzGG3QfoWk8GZJfUB2HLpKZ/4t7Pjm5NEwV7Kv\n Lp9TxL/qgszHqr3a3i14RlybwXv/Shw=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_ed25519; t=1771255149;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type;\n bh=2boaR1wDPbRTae3eQdNU7KRcM538AVBLU5Y9CnB2VVA=;\n b=DASg3N0XXKrQgB5bbynDP9RATduNokzqSBr9k4bjXijN+8rO8B8U8Ks2hNxXsueX0/UR9f\n imKUmHGEK5MSq4CA==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n t=1771255149;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type;\n bh=2boaR1wDPbRTae3eQdNU7KRcM538AVBLU5Y9CnB2VVA=;\n b=bBLgb0jI1c8KgNJ3pIsdk/Rhdkreygr0ftTTngyVzoT4/Z7K2P1VHNPCMPJRijBdrA3QO4\n hglKqeJ2flOaeuZmZYpTzqgx9XHYfVPYqzGG3QfoWk8GZJfUB2HLpKZ/4t7Pjm5NEwV7Kv\n Lp9TxL/qgszHqr3a3i14RlybwXv/Shw=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_ed25519; t=1771255149;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type;\n bh=2boaR1wDPbRTae3eQdNU7KRcM538AVBLU5Y9CnB2VVA=;\n b=DASg3N0XXKrQgB5bbynDP9RATduNokzqSBr9k4bjXijN+8rO8B8U8Ks2hNxXsueX0/UR9f\n imKUmHGEK5MSq4CA=="
        ],
        "Date": "Mon, 16 Feb 2026 16:19:07 +0100",
        "From": "Filip Kastl <fkastl@suse.cz>",
        "To": "gcc-patches@gcc.gnu.org",
        "Cc": "mjambor@suse.cz",
        "Subject": "[PATCH] contrib/filter-clang-warnings.py: Ignore all .texi",
        "Message-ID": "<aZM1a6Qfw41pemdC@fkdesktop.suse.cz>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=utf-8",
        "Content-Disposition": "inline",
        "X-Spamd-Result": "default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[99.99%];\n NEURAL_HAM_LONG(-1.00)[-1.000];\n NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain];\n TO_MATCH_ENVRCPT_ALL(0.00)[];\n DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n RCPT_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[];\n FUZZY_RATELIMITED(0.00)[rspamd.com]; RCVD_TLS_ALL(0.00)[];\n FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[];\n RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[];\n MIME_TRACE(0.00)[0:+]; TO_DN_NONE(0.00)[];\n RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[];\n DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:email,imap1.dmz-prg2.suse.org:helo]",
        "X-BeenThere": "gcc-patches@gcc.gnu.org",
        "X-Mailman-Version": "2.1.30",
        "Precedence": "list",
        "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>",
        "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>",
        "List-Archive": "<https://gcc.gnu.org/pipermail/gcc-patches/>",
        "List-Post": "<mailto:gcc-patches@gcc.gnu.org>",
        "List-Help": "<mailto:gcc-patches-request@gcc.gnu.org?subject=help>",
        "List-Subscribe": "<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>",
        "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"
    },
    "content": "I've tested this patch on the latest Clang warnings.  Worked like intended.\nWhat do you think, Martin?  If you agree and nobody else has any objections,\nI'd push it (since there is no contrib/ maintainer/reviewer).\n\nFilip\n\n\n-- 8< --\n\n\nCompiling GCC with Clang doesn't only yield Clang's warnings but also\nwarnings about .texi documentation files.  In filter-clang-warnings.py\nwe blacklisted some .texi files.  Blacklist all of them.\n\ncontrib/ChangeLog:\n\n\t* filter-clang-warnings.py: Filter out all warnings comming from\n\tfiles with \".texi\" in their name.\n\nSigned-off-by: Filip Kastl <fkastl@suse.cz>\n---\n contrib/filter-clang-warnings.py | 7 +++----\n 1 file changed, 3 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/contrib/filter-clang-warnings.py b/contrib/filter-clang-warnings.py\nindex 5f61ec50d7d..db94ee325a8 100755\n--- a/contrib/filter-clang-warnings.py\n+++ b/contrib/filter-clang-warnings.py\n@@ -73,13 +73,12 @@ def skip_warning(filename, message):\n             # Rust peopel promised to clean these warnings too\n             'rust/': ['-Wunused-private-field'],\n                  'libiberty/sha1.c': ['-Wc23-extensions'],\n-            'avr-mmcu.texi': [''],\n-            'gfortran.texi': [''],\n-            'install.texi': [''],\n-            'libgccjit.texi': [''],\n             'libtool': ['']\n     }\n \n+    if \".texi\" in filename:\n+        return True\n+\n     for name, ignore in ignores.items():\n         for i in ignore:\n             if name in filename and i in message:\n",
    "prefixes": []
}