From owner-svn-src-all@FreeBSD.ORG Tue Mar 9 21:01:12 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CBE92106566C; Tue, 9 Mar 2010 21:01:12 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B9FF58FC1B; Tue, 9 Mar 2010 21:01:12 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o29L1Cpv028788; Tue, 9 Mar 2010 21:01:12 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o29L1C3s028784; Tue, 9 Mar 2010 21:01:12 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201003092101.o29L1C3s028784@svn.freebsd.org> From: Ed Schouten Date: Tue, 9 Mar 2010 21:01:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r204926 - in head: include lib/libcompat sys/sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2010 21:01:12 -0000 Author: ed Date: Tue Mar 9 21:01:12 2010 New Revision: 204926 URL: http://svn.freebsd.org/changeset/base/204926 Log: Add warnings to and . These header files only provide functionality that can be used in combination with libcompat. In order to prevent people from including them without any actual use (which happens a lot with ), put a warning here to make people more aware. This means we have to lower WARNS for libcompat, which is no big deal. Modified: head/include/regexp.h head/lib/libcompat/Makefile head/sys/sys/timeb.h Modified: head/include/regexp.h ============================================================================== --- head/include/regexp.h Tue Mar 9 20:58:15 2010 (r204925) +++ head/include/regexp.h Tue Mar 9 21:01:12 2010 (r204926) @@ -37,6 +37,10 @@ #ifndef _REGEXP_H_ #define _REGEXP_H_ +#ifdef __GNUC__ +#warning "this file includes which is deprecated, use instead" +#endif + /* * Definitions etc. for regexp(3) routines. * Modified: head/lib/libcompat/Makefile ============================================================================== --- head/lib/libcompat/Makefile Tue Mar 9 20:58:15 2010 (r204925) +++ head/lib/libcompat/Makefile Tue Mar 9 21:01:12 2010 (r204926) @@ -5,7 +5,7 @@ LIB=compat CFLAGS+=-DLIBC_SCCS -DSYSLIBC_SCCS -I${.CURDIR}/../libc/locale NO_PIC= -WARNS?= 1 +WARNS?= 0 .PATH: ${.CURDIR}/4.1/${MACHINE_ARCH} ${.CURDIR}/4.1 \ ${.CURDIR}/4.3/${MACHINE_ARCH} ${.CURDIR}/4.3 \ Modified: head/sys/sys/timeb.h ============================================================================== --- head/sys/sys/timeb.h Tue Mar 9 20:58:15 2010 (r204925) +++ head/sys/sys/timeb.h Tue Mar 9 21:01:12 2010 (r204926) @@ -38,6 +38,10 @@ #ifndef _SYS_TIMEB_H_ #define _SYS_TIMEB_H_ +#ifdef __GNUC__ +#warning "this file includes which is deprecated" +#endif + #include #ifndef _TIME_T_DECLARED