From 84254814fddfc98e8ff87c07330227603405f275 Mon Sep 17 00:00:00 2001 From: Waldemar Kozaczuk Date: Wed, 13 Nov 2024 11:07:14 -0500 Subject: [PATCH] build: disable specific warnings for some sources in debug mode When building with newer gcc 12 in debug mode, couple of files under the bsd tree trigger compiler errors which we silence by adding relevant '-Wno-*' flags for these specific sources. Signed-off-by: Waldemar Kozaczuk --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 592cca3c9..4a26cf486 100644 --- a/Makefile +++ b/Makefile @@ -661,6 +661,7 @@ bsd += bsd/sys/netinet/cc/cc_newreno.o bsd += bsd/sys/netinet/arpcache.o ifeq ($(conf_drivers_xen),1) bsd += bsd/sys/xen/evtchn.o +$(out)/bsd/sys/xen/evtchn.o: COMMON += -Wno-array-bounds -Wno-stringop-overread -Wno-stringop-overflow endif ifeq ($(arch),x64) @@ -717,6 +718,7 @@ solaris += bsd/sys/cddl/contrib/opensolaris/common/acl/acl_common.o solaris += bsd/sys/cddl/contrib/opensolaris/common/avl/avl.o solaris += bsd/sys/cddl/contrib/opensolaris/common/nvpair/fnvpair.o solaris += bsd/sys/cddl/contrib/opensolaris/common/nvpair/nvpair.o +$(out)/bsd/sys/cddl/contrib/opensolaris/common/nvpair/nvpair.o: CFLAGS += -Wno-stringop-overread solaris += bsd/sys/cddl/contrib/opensolaris/common/nvpair/nvpair_alloc_fixed.o solaris += bsd/sys/cddl/contrib/opensolaris/common/unicode/u8_textprep.o solaris += bsd/sys/cddl/contrib/opensolaris/uts/common/os/callb.o