diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2022-12-30 06:44:37 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2022-12-30 06:44:37 +0000 |
commit | cce84d3e6e353150c5698b993296673885f29e92 (patch) | |
tree | d90d65b813812eb7db9641ba8f064213816ddb2d /sys/arch/powerpc64/conf | |
parent | 77eb32603e32a27ba9a29a4ce031c2a7eb048ee1 (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/powerpc64/conf')
-rw-r--r-- | sys/arch/powerpc64/conf/Makefile.powerpc64 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/powerpc64/conf/Makefile.powerpc64 b/sys/arch/powerpc64/conf/Makefile.powerpc64 index 8e1d768b591..79bac67fa4c 100644 --- a/sys/arch/powerpc64/conf/Makefile.powerpc64 +++ b/sys/arch/powerpc64/conf/Makefile.powerpc64 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.powerpc64,v 1.13 2022/01/14 06:53:17 jsg Exp $ +# $OpenBSD: Makefile.powerpc64,v 1.14 2022/12/30 06:44:36 jca Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -51,6 +51,9 @@ CWARNFLAGS= -Werror -Wall -Wimplicit-function-declaration \ -Wno-constant-conversion -Wno-address-of-packed-member \ -Wno-unused-but-set-variable -Wno-gnu-folding-constant \ -Wframe-larger-than=2047 +# XXX Workaround for zlib + clang 15 +# https://github.com/madler/zlib/issues/633 +CWARNFLAGS+= -Wno-deprecated-non-prototype -Wno-unknown-warning-option CMACHFLAGS= -mabi=elfv2 -msoft-float -mno-altivec -mno-vsx CMACHFLAGS+= -ffreestanding |