git: fb61949706e7 - stable/13 - libedit: Disable -Wuse-after-free for chartype.c.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Fri, 11 Nov 2022 18:36:55 UTC
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=fb61949706e7242d581dca79be92cb0ef0f06ef2

commit fb61949706e7242d581dca79be92cb0ef0f06ef2
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-10-03 23:10:43 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
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 <bsd.lib.mk>
+
+CWARNFLAGS.chartype.c=	${NO_WUSE_AFTER_FREE}