git: 1348ad12a910 - stable/13 - bhyve: Enable the default compiler warnings

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Thu, 26 Jan 2023 20:27:09 UTC
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=1348ad12a910b9507008829becde7fd808d906b1

commit 1348ad12a910b9507008829becde7fd808d906b1
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-11-18 19:10:33 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-01-26 20:23:02 +0000

    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
    
    (cherry picked from commit 71ebd117386cda6410ca65eb487b63e5dedf3245)
---
 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 bd78a3362672..a456d507a071 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 <bsd.prog.mk>