From 1a8e52391be837bb2851065b4bad6c163db9edef Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Fri, 18 Nov 2022 14:04:19 -0500 Subject: [PATCH] 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 1f2e1031bf8..bd78a336267 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