summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-11-25 05:01:44 +0000
committerguenther <guenther@openbsd.org>2015-11-25 05:01:44 +0000
commit5bda5e92ce70a82d46b34071f98f09f49baf973b (patch)
tree1bf943079ae09cebebcfc3269daf3293853cab3e /lib/libc
parentadd size to free (diff)
downloadwireguard-openbsd-5bda5e92ce70a82d46b34071f98f09f49baf973b.tar.xz
wireguard-openbsd-5bda5e92ce70a82d46b34071f98f09f49baf973b.zip
Make using a deprecated function an error instead of just a warning
ok millert@ kettenis@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/Makefile.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/Makefile.inc b/lib/libc/Makefile.inc
index 2de9057aa54..d5782e2fe6b 100644
--- a/lib/libc/Makefile.inc
+++ b/lib/libc/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.26 2015/10/25 10:22:09 bluhm Exp $
+# $OpenBSD: Makefile.inc,v 1.27 2015/11/25 05:01:44 guenther Exp $
#
# This file contains make rules used to build libc
#
@@ -11,6 +11,10 @@ all:
CFLAGS+=-I${LIBCSRCDIR}/include -I${LIBCSRCDIR}/hidden \
-Werror-implicit-function-declaration -include namespace.h
+.if ${COMPILER_VERSION:L} != "gcc3"
+CFLAGS+=-Werror=deprecated-declarations
+.endif
+
# Include link-time warnings about unsafe API uses (ie. strcpy)
CFLAGS+=-DAPIWARN