From nobody Mon Oct  3 23:11:27 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 4MhGmb3SJbz4V1QV;
	Mon,  3 Oct 2022 23:11:27 +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 4MhGmb28f5z3QLd;
	Mon,  3 Oct 2022 23:11:27 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1664838687;
	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=B73ML4Oq4q2AB/9E6atVCXk/oT3KWbTcoMU0i0t3/zk=;
	b=i8KIsu7i7oe5U/wRB5i4SUiR+osxl+0/mhHThpcgWdY7BoM3uNEoW6SUs9uesM6qvuoQm2
	cCnjYwjNOoVZbczOfko82T4SeqCkhpTEgBGVze2Dp6WgnTk/rQdhohjKlQlFeIPLs7MTjF
	y+BASrhj3SQ2Sf60hM7QGkt6yxl8rCmw4GHK9j50E0+5xWOFjxqywc5wf6lAqWAmAaY5tt
	5VDr9G/5j3kZbzs3LuQWVbUIFVE08X6U1Fg7KKvLMazzUrQAaby8ShNC4whSzApyEqDGtj
	c7lhycaVvj+6OdlNF92XAMSICMe8KNdFlQOKN2OAkUFVt4TAwFmOWASXHI4Xcg==
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 4MhGmb1DcCzMdX;
	Mon,  3 Oct 2022 23:11:27 +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 293NBRVW065721;
	Mon, 3 Oct 2022 23:11:27 GMT
	(envelope-from git@gitrepo.freebsd.org)
Received: (from git@localhost)
	by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 293NBRHo065720;
	Mon, 3 Oct 2022 23:11:27 GMT
	(envelope-from git)
Date: Mon, 3 Oct 2022 23:11:27 GMT
Message-Id: <202210032311.293NBRHo065720@gitrepo.freebsd.org>
To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org,
        dev-commits-src-main@FreeBSD.org
From: John Baldwin <jhb@FreeBSD.org>
Subject: git: 996ee9659763 - main - libbegemot: Disable -Wuse-after-free.
List-Id: Commit messages for all branches of the src repository <dev-commits-src-all.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all
List-Help: <mailto:dev-commits-src-all+help@freebsd.org>
List-Post: <mailto:dev-commits-src-all@freebsd.org>
List-Subscribe: <mailto:dev-commits-src-all+subscribe@freebsd.org>
List-Unsubscribe: <mailto:dev-commits-src-all+unsubscribe@freebsd.org>
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/main
X-Git-Reftype: branch
X-Git-Commit: 996ee965976379f0455c5f59b1cf9c82bc2e5e1b
Auto-Submitted: auto-generated
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1664838687;
	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=B73ML4Oq4q2AB/9E6atVCXk/oT3KWbTcoMU0i0t3/zk=;
	b=cfscF326m+b3x2pC0mwJ/6jK5ffC+t2ZrfS+LXi/KXrM1Fnee0APVtmOWsaw2lzMC7MXYN
	56cQTgD6jWsOXUdyYpExvgdb13vfvNB7Qv67ql/d89o+CfSl839QFd8g7BfHeHOlgvurBv
	0NymvPS8xQRisqPSoB/fLQNMdTf21dbjbBNGMnvL2mXkujzoi8q9toQVG5JFCYKI7/PTFI
	rLfw0Hso8AW2xWehm2IqNY/0xiViDTqJtJprHYS6KUdYwtWZdjglA8558hjyWS0oatZaX0
	ko8/LU/kTEBGcV9uV5lpNNYQUYaFhR0hD1caHl29IRWEoip//ZdlLX/Pa/2Ulw==
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664838687; a=rsa-sha256; cv=none;
	b=CXooEpLN51P1yVypbJEQN8gsmeFjTRAb/lLtBAQX6NbpjMcIlwS9VKe1s43DVDw9SReZeL
	N1K4bGATMyG4yC3k93K4Js37Lhpw2cAqbh87fshUVsUK7+CWG7lDsm281jd/rHS2pDSg3i
	8TFD1kzrOETfzRjixyo6BAXFRUsBL6/MX8qOwvZNaDqBWPySnT1WHBeeKhlISzoGoo89yx
	93RzAcoZJ5hRHu1clL6D/O6bXdLmmJjVQ3KrdOJ7k/dgMrgDW1k+P7WGDZlQsySCM5kWxs
	kQSloBC7SnYaiqaewUxkgs+RsN/4huLc8Wm3JG1fJYlNo0123Rkw14kSq71iTQ==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
X-ThisMailContainsUnwantedMimeParts: N

The branch main has been updated by jhb:

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

commit 996ee965976379f0455c5f59b1cf9c82bc2e5e1b
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-10-03 23:10:43 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
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}