summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-07-10 12:55:14 +0000
committertedu <tedu@openbsd.org>2014-07-10 12:55:14 +0000
commit25dda8feaf2f5fbf31269f82d8bd2f51ab3abad2 (patch)
tree3776283b8d9c7ef80267bfebe04321a143d751c8 /lib
parentadd additional includes required to build with -DOPENSSL_NO_DEPRECATED (diff)
downloadwireguard-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
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/Makefile.inc4
1 files changed, 2 insertions, 2 deletions
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