summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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