git: 1a8e52391be8 - main - bhyve: Disable thread safety analysis
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Nov 2022 19:13:03 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=1a8e52391be837bb2851065b4bad6c163db9edef
commit 1a8e52391be837bb2851065b4bad6c163db9edef
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-11-18 19:04:19 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-11-18 19:11:48 +0000
bhyve: Disable thread safety analysis
The warnings that arise are bogus and have to be muted with
__no_lock_analysis in most cases. As a step towards enabling the
default warning level for bhyve, just disable them.
Reviewed by: corvink, jhb
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D37295
---
usr.sbin/bhyve/Makefile | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/usr.sbin/bhyve/Makefile b/usr.sbin/bhyve/Makefile
index 1f2e1031bf8a..bd78a3362672 100644
--- a/usr.sbin/bhyve/Makefile
+++ b/usr.sbin/bhyve/Makefile
@@ -134,5 +134,10 @@ CFLAGS+=-DGDB_LOG
WARNS?= 2
+# Disable thread safety analysis since it only finds very simple bugs and
+# yields many false positives.
+NO_WTHREAD_SAFETY=
+
SUBDIR= kbdlayout
+
.include <bsd.prog.mk>