From e7a945f389196fcb114d25f7a1dd1369d94fb0d8 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 12 Jun 2003 04:44:15 +0000 Subject: If BURN_BRIDGES or _FreeBSD_version >= 6.0 and OBSOLETE_IN_6 is defined, then #error out. This is protected inside of #ifdef _KERNEL. This allows one to tag code in the tree that will be deleted in 6.x with the 'OBSOLETE_IN_6 #define at the top of the file. This makes for easy grepping, plus a mechanism that automatically fails the compilation of those files that are so tagged after we do the cutover. --- sys/sys/param.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys') diff --git a/sys/sys/param.h b/sys/sys/param.h index 85890edd304e1..6c796abd963b0 100644 --- a/sys/sys/param.h +++ b/sys/sys/param.h @@ -89,6 +89,10 @@ /* More types and definitions used throughout the kernel. */ #ifdef _KERNEL +#if (defined(BURN_BRIDGES) || __FreeBSD_version >= 600000) \ + && defined(OBSOLETE_IN_6) +#error "This file contains obsolete code to be removed in 6.0-current" +#endif #include #include #include -- cgit v1.3