diff options
author | 2014-07-10 12:55:14 +0000 | |
---|---|---|
committer | 2014-07-10 12:55:14 +0000 | |
commit | 25dda8feaf2f5fbf31269f82d8bd2f51ab3abad2 (patch) | |
tree | 3776283b8d9c7ef80267bfebe04321a143d751c8 | |
parent | add additional includes required to build with -DOPENSSL_NO_DEPRECATED (diff) | |
download | wireguard-openbsd-25dda8feaf2f5fbf31269f82d8bd2f51ab3abad2.tar.xz wireguard-openbsd-25dda8feaf2f5fbf31269f82d8bd2f51ab3abad2.zip |
sprinkle in -Werror-implicit-function-declaration to disable one of the
worst C misfeatures. ok deraadt miod
-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 |