From 71ebd117386cda6410ca65eb487b63e5dedf3245 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Fri, 18 Nov 2022 14:10:33 -0500 Subject: [PATCH] bhyve: Enable the default compiler warnings Disable -Wcast-align for now since we have many instances of that warning (I fixed some but not most of them) and platforms on which bhyve runs don't particularly care about unaligned accesses. Reviewed by: corvink Differential Revision: https://reviews.freebsd.org/D37296 --- usr.sbin/bhyve/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bhyve/Makefile b/usr.sbin/bhyve/Makefile index bd78a336267..a456d507a07 100644 --- a/usr.sbin/bhyve/Makefile +++ b/usr.sbin/bhyve/Makefile @@ -132,12 +132,12 @@ CFLAGS+= -DBHYVE_SNAPSHOT CFLAGS+=-DGDB_LOG .endif -WARNS?= 2 - # Disable thread safety analysis since it only finds very simple bugs and # yields many false positives. NO_WTHREAD_SAFETY= +NO_WCAST_ALIGN= + SUBDIR= kbdlayout .include