From nobody Fri Nov 11 18:36:55 2022 X-Original-To: dev-commits-src-all@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 4N86qr0ZbFz4dbZB; Fri, 11 Nov 2022 18:36:56 +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 4N86qq5B6Mz3vvB; Fri, 11 Nov 2022 18:36:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668191815; 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=JD4XG0EIYJrkLwpN28q1A43XQpMDXlJo9agaZqoudd4=; b=gxUXFZPooCJxEpm0fTfa//jUIU4pstGQE0yzTzY4F/K50m9lqtQKlNMJCW1CvKy9xOUfae KvSX2Dl5ZRXIOY1C1PzqslWkarxAcRVj9NhBvudHJV7TjLk1qmcsIibcIexqJlDx8n1UEc 7X2OSKYhNWBP9k13nqOsknOkK9mqhrQVPPQrsgqFcd3YKYdghy322Bk/R1da0Uw+DMsGGr BMTjgr4nvoNZeZM9IKAmmwmGPyaPZPr0o9B8CcdatWWyr5Ukt6lf1H5rb4jNcxSbAL8GIn OEt+KA0CADFEEU/ef9T1SjNuSAF0W45hwyCOnqgNlSK5syYKeXMt20ljyYPJEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668191815; 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=JD4XG0EIYJrkLwpN28q1A43XQpMDXlJo9agaZqoudd4=; b=rjo+PLaaLcPzMMZhS2cIu0u2cRRHjpIODslD9UdwkCUDuCkFEeOeDIp+91pqe849eDew+C K1PHbG1IFOxRpLKNywcbzohzGGXvDJd5dgZ/Qc7CI9ZpLR+iKEfVvB+QWA0x9Wn5bBiE7z jrzpkrr3fNyIwynZlppeRLhdukHrosAALgig/KQ1pv68ox+h7t459oF+pnzPSjZVJy1+QM VNysl5+/dc5GKtoTL0X6bXr+KOFtEZj1QqdAhwh8cBMk7jGU/JpYRuwpqB4jAJh96J6vv7 QAT4qnRRH/e5hGB5wvI60p+3DmBwD7abmQZzscK04eRNcFo6zNnT/Jmb3XrKjw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668191815; a=rsa-sha256; cv=none; b=euG/jlXGTcq/HB0b8HmxOAGVBjaUY+3KaYrJQMxfwqh/DAAUn0zB3DYgJg+8ejdUKSS+ZP 1wVqSXQ2lsMHqD3auI6FdomMmJg1i1XjJ5H5o00UuRcHklIezFytZP+eMxJqZ2zBRGSUiV Eth/CQjGtQxGu3qrQgp0mzagUX+MHjioAUwAUgks6LzG9s+b2IWb12HS4Rzk7d1yev/Cy3 NOFtsl52FbP8LWTWhvB/xEmrx9HR4TGn+F5KWwvKRjQCu/Lp5ATd9V3kHExj4si4KY8xAH 1Izmeu+ByJ8o6RPC4blpb9uhEnfLTC2k97R7R5Jv4FI4hnhosXnniRf2nkw67A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4N86qq4FrkztHJ; Fri, 11 Nov 2022 18:36:55 +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 2ABIatVc004238; Fri, 11 Nov 2022 18:36:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2ABIatQd004237; Fri, 11 Nov 2022 18:36:55 GMT (envelope-from git) Date: Fri, 11 Nov 2022 18:36:55 GMT Message-Id: <202211111836.2ABIatQd004237@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: fb61949706e7 - stable/13 - libedit: Disable -Wuse-after-free for chartype.c. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/stable/13 X-Git-Reftype: branch X-Git-Commit: fb61949706e7242d581dca79be92cb0ef0f06ef2 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=fb61949706e7242d581dca79be92cb0ef0f06ef2 commit fb61949706e7242d581dca79be92cb0ef0f06ef2 Author: John Baldwin AuthorDate: 2022-10-03 23:10:43 +0000 Commit: John Baldwin CommitDate: 2022-11-11 18:18:54 +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 (cherry picked from commit 7973f26ad6f98e6da3e2bb07a1015270c0d16c43) --- lib/libedit/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libedit/Makefile b/lib/libedit/Makefile index e549ac15c000..bf7d45957356 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}