git: 65e28bfeaacc - stable/13 - libbegemot: Disable -Wuse-after-free.

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

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

commit 65e28bfeaaccfc9b515f52da13ab360546362f52
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

    libbegemot: Disable -Wuse-after-free.
    
    The _xrealloc() function prints pointer values for internal assertion
    failures and in one case does so after it has freed the pointer.
    
    Reviewed by:    emaste
    Differential Revision:  https://reviews.freebsd.org/D36819
    
    (cherry picked from commit 996ee965976379f0455c5f59b1cf9c82bc2e5e1b)
---
 lib/libbegemot/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/libbegemot/Makefile b/lib/libbegemot/Makefile
index c5d3bb8badc2..6ce1310ae97b 100644
--- a/lib/libbegemot/Makefile
+++ b/lib/libbegemot/Makefile
@@ -25,3 +25,5 @@ MLINKS=	rpoll.3 poll_register.3		\
 	rpoll.3 poll_dispatch.3
 
 .include <bsd.lib.mk>
+
+CWARNFLAGS+=	${NO_WUSE_AFTER_FREE}