Date: Tue, 9 Mar 2010 21:01:12 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r204926 - in head: include lib/libcompat sys/sys Message-ID: <201003092101.o29L1C3s028784@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <regexp.h> and <sys/timeb.h>. 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 <sys/timeb.h>), 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 <regexp.h> which is deprecated, use <regex.h> 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 <sys/timeb.h> which is deprecated" +#endif + #include <sys/_types.h> #ifndef _TIME_T_DECLARED
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003092101.o29L1C3s028784>