{"id":2231881,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2231881/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/patch/20260501134419.2872932-1-ncm@cantrip.org/","project":{"id":17,"url":"http://patchwork.ozlabs.org/api/1.1/projects/17/?format=json","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},"msgid":"<20260501134419.2872932-1-ncm@cantrip.org>","date":"2026-05-01T13:40:49","name":"gcc/doc: Clarify warning for variable unused","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"ce85c5a5bd2c8f2cd9fc1aab762aef239d164e48","submitter":{"id":90892,"url":"http://patchwork.ozlabs.org/api/1.1/people/90892/?format=json","name":"Nathan Myers","email":"ncm@cantrip.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/gcc/patch/20260501134419.2872932-1-ncm@cantrip.org/mbox/","series":[{"id":502460,"url":"http://patchwork.ozlabs.org/api/1.1/series/502460/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/list/?series=502460","date":"2026-05-01T13:40:49","name":"gcc/doc: Clarify warning for variable unused","version":1,"mbox":"http://patchwork.ozlabs.org/series/502460/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2231881/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2231881/checks/","tags":{},"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 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 dmarc=none (p=none dis=none) header.from=cantrip.org","sourceware.org; spf=fail smtp.mailfrom=cantrip.org","server2.sourceware.org;\n arc=none smtp.remote-ip=207.211.30.44"],"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 4g6XN75fTGz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 23:44:55 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 94D8543B5511\n\tfor <incoming@patchwork.ozlabs.org>; Fri,  1 May 2026 13:44:53 +0000 (GMT)","from us-smtp-delivery-44.mimecast.com\n (us-smtp-delivery-44.mimecast.com [207.211.30.44])\n by sourceware.org (Postfix) with ESMTP id B707643B5517\n for <gcc-patches@gcc.gnu.org>; Fri,  1 May 2026 13:44:27 +0000 (GMT)","from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-319-cTw7K3T2MdirMT9GSXLbMg-1; Fri,\n 01 May 2026 09:44:23 -0400","from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id 6F3AD19560B4; Fri,  1 May 2026 13:44:22 +0000 (UTC)","from redhat.redhat.com (unknown [10.22.74.12])\n by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id A30D3180045E; Fri,  1 May 2026 13:44:20 +0000 (UTC)"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org 94D8543B5511","OpenDKIM Filter v2.11.0 sourceware.org B707643B5517"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org B707643B5517","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org B707643B5517","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777643067; cv=none;\n b=fs59il8y7LIaAVCfTuE/uSY0cXAi4LjIUeUJ07IAQFK2KKOvyI0jN+op3v17zUmZikCdIJpyiFufPp+rJQyGkDXtFUi89jIu/sywmkrksFx5xLJj2QL2XubcW5GOn/DI/keRWPmNpGtCv7ZCdFEvjZvfKlv9I+bcvO/bJmFSEZ8=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777643067; c=relaxed/simple;\n bh=lnbxbCi6UB+tnPIfIZMVU7P+GkeCJnIFBeEWcTNfCnA=;\n h=From:To:Subject:Date:Message-ID:MIME-Version;\n b=bDrI9v2vcrffXYEopj1JBix0TTtzJsWY70Bf4CmPGcbmLJfi0g70CCcwnaCTiHnIhRUaKHJB76EI/fvlwhDvJ88YHwesztD0y/PuECnKtDEkz4twUvY2t+gtzOcpoUn8IaXOCJI4L8D82Bs7U87NLpVs97CKOldyTZkbBWEIX3g=","ARC-Authentication-Results":"i=1; server2.sourceware.org","X-MC-Unique":"cTw7K3T2MdirMT9GSXLbMg-1","X-Mimecast-MFC-AGG-ID":"cTw7K3T2MdirMT9GSXLbMg_1777643062","From":"Nathan Myers <ncm@cantrip.org>","To":"gcc-patches@gcc.gnu.org,\n\tlibstdc++@gcc.gnu.org","Subject":"[PATCH] gcc/doc: Clarify warning for variable unused","Date":"Fri,  1 May 2026 09:40:49 -0400","Message-ID":"<20260501134419.2872932-1-ncm@cantrip.org>","MIME-Version":"1.0","X-Scanned-By":"MIMEDefang 3.4.1 on 10.30.177.111","X-Mimecast-Spam-Score":"0","X-Mimecast-MFC-PROC-ID":"SmXv2MOrl0XIxAEVNhbbT-TtnMagGZaoVh9vya4wQjk_1777643062","X-Mimecast-Originator":"cantrip.org","Content-Transfer-Encoding":"quoted-printable","content-type":"text/plain; charset=WINDOWS-1252; x-default=true","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":"[Guessing this should be in the 16.x branch too.]\n\nIn the www gcc-16/porting_to, two lines in comment text on\nthe example code for -Wunused-variable was changed from\n\"pre/postincrement used\" to \"pre/postincrement result used\".\nApproval there directs that the change should be propagated\nback to the texi source the example came from. This is that\npropagation.\n\ngcc/Changelog:\n\t* doc/invoke.texi: insert \"result\" in comment text\n---\n gcc/doc/invoke.texi | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)","diff":"diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi\nindex bebe20c5e0b..63e1a3bbc56 100644\n--- a/gcc/doc/invoke.texi\n+++ b/gcc/doc/invoke.texi\n@@ -8319,10 +8319,10 @@ void foo (void)\n   int f = 0; // No warning, f used\n   int g = f = 5;\n   (void) g;\n-  int h = 0; // No warning, preincrement used\n+  int h = 0; // No warning, preincrement result used\n   int i = ++h;\n   (void) i;\n-  int j = 0; // No warning, postdecrement used\n+  int j = 0; // No warning, postdecrement result used\n   int k = j--;\n   (void) k;\n   int l = 0; // No warning, l used\n","prefixes":[]}