diff options
-rw-r--r-- | bin/Makefile.inc | 3 | ||||
-rw-r--r-- | lib/libc/Makefile.inc | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/bin/Makefile.inc b/bin/Makefile.inc index 6b74b617618..0a9847a765f 100644 --- a/bin/Makefile.inc +++ b/bin/Makefile.inc @@ -1,4 +1,5 @@ -# $OpenBSD: Makefile.inc,v 1.4 1997/09/21 11:34:33 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.5 2014/07/10 12:55:14 tedu Exp $ BINDIR?= /bin LDSTATIC= ${STATIC} +CFLAGS+=-Werror-implicit-function-declaration diff --git a/lib/libc/Makefile.inc b/lib/libc/Makefile.inc index 095dba4fcd9..0754c593f5b 100644 --- a/lib/libc/Makefile.inc +++ b/lib/libc/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.20 2014/06/09 20:47:10 miod Exp $ +# $OpenBSD: Makefile.inc,v 1.21 2014/07/10 12:55:14 tedu Exp $ # # This file contains make rules used to build libc # @@ -8,7 +8,7 @@ all: @echo "need to define LIBCSRCDIR" >&2; exit 1 .endif -CFLAGS+= -I${LIBCSRCDIR}/include +CFLAGS+= -I${LIBCSRCDIR}/include -Werror-implicit-function-declaration # Include link-time warnings about unsafe API uses (ie. strcpy) CFLAGS+=-DAPIWARN |