diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2022-08-24 17:36:20 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2022-08-24 17:36:20 +0000 |
commit | b124f57569bde135eb73cee58ef29b1647d7386f (patch) | |
tree | 8871921d10c2500829fbd349d4d0ad483656a569 /sys/arch | |
parent | 9a7db5534a6003a69f54e9fcf652c4a4fa5e274f (diff) |
Force compilation to fail in case of implicit function declaration.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/landisk/stand/boot/Makefile | 3 | ||||
-rw-r--r-- | sys/arch/landisk/stand/xxboot/Makefile | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/landisk/stand/boot/Makefile b/sys/arch/landisk/stand/boot/Makefile index a18b517a916..4f0d884f611 100644 --- a/sys/arch/landisk/stand/boot/Makefile +++ b/sys/arch/landisk/stand/boot/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.16 2019/11/28 00:17:12 bluhm Exp $ +# $OpenBSD: Makefile,v 1.17 2022/08/24 17:36:19 miod Exp $ MAN= boot.8 @@ -16,6 +16,7 @@ CPPFLAGS+=-DSH4 CPPFLAGS+=-nostdinc -I${.OBJDIR} -I${.CURDIR} -I${.CURDIR}/.. -I${S} CPPFLAGS+=-DLOADADDRESS=0x8ff00000 CFLAGS+=-m4-nofpu -fno-pie +CFLAGS+=-Wall -Wimplicit-function-declaration -Werror AFLAGS+= -fno-pie .PATH: ${S}/stand/boot diff --git a/sys/arch/landisk/stand/xxboot/Makefile b/sys/arch/landisk/stand/xxboot/Makefile index 3b3d97dddac..d0dd2eb5195 100644 --- a/sys/arch/landisk/stand/xxboot/Makefile +++ b/sys/arch/landisk/stand/xxboot/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.11 2016/11/28 16:42:45 deraadt Exp $ +# $OpenBSD: Makefile,v 1.12 2022/08/24 17:36:19 miod Exp $ MAN= xxboot.8 @@ -16,6 +16,7 @@ CPPFLAGS+=-D_STANDALONE CPPFLAGS+=-nostdinc -I${.OBJDIR} -I${.CURDIR}/.. -I${.CURDIR}/../../../.. CPPFLAGS+=-DLOADADDRESS=0x8ff00000 -DXXBOOT_SECTORS=${XXBOOT_SECTORS} CFLAGS+=-m4-nofpu -fno-pie +CFLAGS+=-Wall -Wimplicit-function-declaration -Werror AFLAGS+= -fno-pie OBJCOPY?=objcopy |