The branch main has been updated by jhb:

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

commit 996ee965976379f0455c5f59b1cf9c82bc2e5e1b
Author:     John Baldwin <[email protected]>
AuthorDate: 2022-10-03 23:10:43 +0000
Commit:     John Baldwin <[email protected]>
CommitDate: 2022-10-03 23:10:43 +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
---
 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}

Reply via email to