HomeFreeBSD

libedit: Disable -Wuse-after-free for chartype.c.

Description

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)

Details

Provenance
jhbAuthored on Oct 3 2022, 11:10 PM
Reviewer
emaste
Differential Revision
D36820: libedit: Disable -Wuse-after-free for chartype.c.
Parents
rG7cefb4bc4b1c: libfetch: Use memcpy in place of an odd strncpy.
Branches
Unknown
Tags
Unknown