summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-11-25 05:01:45 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-11-25 05:01:45 +0000
commit26917ee0045e427162f14e0c03451b6283f1c058 (patch)
tree484589200cae30f88008b6d73554dec6082480f4 /lib
parent76c305d927ae75f5822574ce71845532118aa800 (diff)
Make using a deprecated function an error instead of just a warning
ok millert@ kettenis@
Diffstat (limited to 'lib')
-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