Skip to content

Commit

Permalink
build: disable specific warnings for some sources in debug mode
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
wkozaczuk committed Nov 13, 2024
1 parent 476d4f5 commit 8425481
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8425481

Please sign in to comment.