From: miod Date: Wed, 24 Aug 2022 17:36:19 +0000 (+0000) Subject: Force compilation to fail in case of implicit function declaration. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c2beb4d732c52a749df41ddbb6f98583322ff0fb;p=openbsd Force compilation to fail in case of implicit function declaration. --- 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