Force compilation to fail in case of implicit function declaration.
authormiod <miod@openbsd.org>
Wed, 24 Aug 2022 17:36:19 +0000 (17:36 +0000)
committermiod <miod@openbsd.org>
Wed, 24 Aug 2022 17:36:19 +0000 (17:36 +0000)
sys/arch/landisk/stand/boot/Makefile
sys/arch/landisk/stand/xxboot/Makefile

index a18b517..4f0d884 100644 (file)
@@ -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
index 3b3d97d..d0dd2eb 100644 (file)
@@ -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