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/armv7/stand | |
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/armv7/stand')
-rw-r--r-- | sys/arch/armv7/stand/efiboot/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/armv7/stand/efiboot/Makefile b/sys/arch/armv7/stand/efiboot/Makefile index d6ffc41bf38..0fe490f04a7 100644 --- a/sys/arch/armv7/stand/efiboot/Makefile +++ b/sys/arch/armv7/stand/efiboot/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.17 2021/11/14 21:51:48 guenther Exp $ +# $OpenBSD: Makefile,v 1.18 2022/12/30 06:44:35 jca Exp $ NOMAN= # @@ -51,6 +51,9 @@ COPTS+= -ffreestanding -fno-stack-protector COPTS+= -fshort-wchar -fPIC -fno-builtin COPTS+= -Wall -Werror COPTS+= -mfloat-abi=soft +# XXX Workaround for zlib + clang 15 +# https://github.com/madler/zlib/issues/633 +COPTS+= -Wno-deprecated-non-prototype -Wno-unknown-warning-option PROG.elf= ${PROG:S/.EFI/.elf/} CLEANFILES+= ${PROG.elf} ${PROG.elf}.tmp |