From 5bda5e92ce70a82d46b34071f98f09f49baf973b Mon Sep 17 00:00:00 2001 From: guenther Date: Wed, 25 Nov 2015 05:01:44 +0000 Subject: Make using a deprecated function an error instead of just a warning ok millert@ kettenis@ --- lib/libc/Makefile.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/libc') 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 -- cgit v1.2.3-59-g8ed1b