summaryrefslogtreecommitdiff
path: root/sys/arch/octeon
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2022-12-30 06:44:37 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2022-12-30 06:44:37 +0000
commitcce84d3e6e353150c5698b993296673885f29e92 (patch)
treed90d65b813812eb7db9641ba8f064213816ddb2d /sys/arch/octeon
parent77eb32603e32a27ba9a29a4ce031c2a7eb048ee1 (diff)
Neuter zlib fatal warnings when building kernels and bootloaders with clang 15
Disable -Wdeprecated-non-prototype instead of patching zlib. Upstream plans to drop the pre-ANSI syntax soon. ok tb@ millert@
Diffstat (limited to 'sys/arch/octeon')
-rw-r--r--sys/arch/octeon/conf/Makefile.octeon5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/octeon/conf/Makefile.octeon b/sys/arch/octeon/conf/Makefile.octeon
index 2af14224682..e43afc0b67e 100644
--- a/sys/arch/octeon/conf/Makefile.octeon
+++ b/sys/arch/octeon/conf/Makefile.octeon
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.octeon,v 1.61 2022/07/18 12:48:35 visa Exp $
+# $OpenBSD: Makefile.octeon,v 1.62 2022/12/30 06:44:36 jca Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -49,6 +49,9 @@ NO_INTEGR_AS= -no-integrated-as
CMACHFLAGS+= -fomit-frame-pointer
CWARNFLAGS+= -Wno-address-of-packed-member -Wno-constant-conversion \
-Wno-unused-but-set-variable -Wno-gnu-folding-constant
+# XXX Workaround for zlib + clang 15
+# https://github.com/madler/zlib/issues/633
+CWARNFLAGS+= -Wno-deprecated-non-prototype -Wno-unknown-warning-option
.endif
DEBUG?= -g