From nobody Mon Oct 03 23:11:28 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MhGmc3x6sz4V1W9; Mon, 3 Oct 2022 23:11:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MhGmc3GFvz3QSS; Mon, 3 Oct 2022 23:11:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664838688; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KGdlw+pL3JXWOvr63SlSZxbqZvISCOs1Wz6nryGWjYM=; b=Q3K2Hr8hSn+19JkDh7fNgg/7XsQw7Vjs+WfrFFi7sXiQ1NrQrFq22frbN8FSiTNrZkjuf4 Riu79KGATPlvtRAS+caSO422pwu6AZqwn1DFSO8Ajc8LZuXpzKF0irj9h6SlVq1dsGPTz6 YFdmhQSVmJJ3Hnli0f1egkASfoMJ98fWJsvVmaKtfWJIKaSlb+3jMKJbIKuDSFXfAJj9e4 3vV3dio0So3+eDM1iQIKnVUbN3WKOFE71VXWxliD+wisgtmy611b3/jfb6nsyapPjnVQNC +vR5jLZ6bbaD51v42edBoDDZwvluHer8YL9n6pCiI/hTYYuIX008xRszFIAI8w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MhGmc2MGszMVk; Mon, 3 Oct 2022 23:11:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 293NBSDv065745; Mon, 3 Oct 2022 23:11:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 293NBSJg065744; Mon, 3 Oct 2022 23:11:28 GMT (envelope-from git) Date: Mon, 3 Oct 2022 23:11:28 GMT Message-Id: <202210032311.293NBSJg065744@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 7973f26ad6f9 - main - libedit: Disable -Wuse-after-free for chartype.c. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7973f26ad6f98e6da3e2bb07a1015270c0d16c43 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664838688; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KGdlw+pL3JXWOvr63SlSZxbqZvISCOs1Wz6nryGWjYM=; b=tGCw0A9SMbAERJAWjybp7dxVjwWsO5Hx0WxkTugyjLpwPZNelTD8VwxXiXUc5fxexDQsPS N5nPkMohSwOHXgYC8XPBBmF9UXiBoFDMUX+jaMyhh4wfv3SAC7ndprbmSB4NQQwSZiXsnp tcmlyy59F+W9Y7jg0TpF3cVBs3Lya0FwCjHHJSIOIvTAQ1aVaqE8FtOXR0ZROoj7vudQBu 8jABWLKlT6+ZPw1ezjD7Laa86G+8EurHqNsVnRO6AMIMTRSZahcuvQVVL+QF9W/YovUIWD +hc1hxcHcDL5vL9KBjzmoA9qKttz2fHX3phf8rqvC/j/VPO8HbtUonJNYwIHiA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664838688; a=rsa-sha256; cv=none; b=tkh7nq2CXpFUrmUiEOaM36U+uofa2EFLRTS6NYtIZMQ8Vho3FQn8iz7OA+cJji2Fud6voh c/W3w2wGyDeHJCSXwk60qimu7Mf2ILnJ46QYAGTFbLT/YxzV48RSZ/scrCrN/EyXgb3UYM 4FGj7wRk2aAe2ZtFldVs67uReriL8htxb1FX8r/r4MzTa6wT4mqVuXmDBZDekPZ/OVuEwC +Zd/V5+HQKlHUzuav7oN8esM6FLbN+BGCIY9TNRFmH92XFIGMNuu2iZta4/LwuVmNegxEw uQo+f61NANee5CVSgbcbMFLI6lh20lQwztajx4LdofVqGlvceeNwFbHp34BVYg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=7973f26ad6f98e6da3e2bb07a1015270c0d16c43 commit 7973f26ad6f98e6da3e2bb07a1015270c0d16c43 Author: John Baldwin AuthorDate: 2022-10-03 23:10:43 +0000 Commit: John Baldwin CommitDate: 2022-10-03 23:10:43 +0000 libedit: Disable -Wuse-after-free for chartype.c. GCC 12 thinks ct_visual_string can reuse a pointer after it has been reallocated, but in this case the warning appears false. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D36820 --- lib/libedit/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libedit/Makefile b/lib/libedit/Makefile index 28014feafab7..4e33320cab70 100644 --- a/lib/libedit/Makefile +++ b/lib/libedit/Makefile @@ -97,3 +97,5 @@ test: tc1.o libedit.a ${DPADD} ${LIBTERMCAP} ${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD} .include + +CWARNFLAGS.chartype.c= ${NO_WUSE_AFTER_FREE}