summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1996-06-17 16:54:03 +0000
committerwpaul <wpaul@FreeBSD.org>1996-06-17 16:54:03 +0000
commit1f5c4ea267df107922aca7248971ab314a648fee (patch)
tree353e5dfdb4b424ec9d0f90cb062b54a04ff3f532 /sys/kern
parent209ea16ce9d259ba9f096249394d073e50356282 (diff)
downloadFreeBSD-src-1f5c4ea267df107922aca7248971ab314a648fee.zip
FreeBSD-src-1f5c4ea267df107922aca7248971ab314a648fee.tar.gz
Add a couple of #ifdef DEVFS/#endif clauses to slence the following
compiler warnings which occur if you don't have 'options DEVFS' in your kernel config file: ../../kern/kern_descrip.c: In function `fildesc_drvinit': ../../kern/kern_descrip.c:1103: warning: unused variable `fd' ../../kern/kern_descrip.c: At top level: ../../kern/kern_descrip.c:1095: warning: `devfs_token_stdin' defined but not use d ../../kern/kern_descrip.c:1096: warning: `devfs_token_stdout' defined but not us ed ../../kern/kern_descrip.c:1097: warning: `devfs_token_stderr' defined but not us ed ../../kern/kern_descrip.c:1098: warning: `devfs_token_fildesc' defined but not u sed
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_descrip.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index a9b9b03..aaf9344 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_descrip.c 8.6 (Berkeley) 4/19/94
- * $Id: kern_descrip.c,v 1.28 1996/03/27 19:19:58 bde Exp $
+ * $Id: kern_descrip.c,v 1.29 1996/06/12 05:07:26 gpalmer Exp $
*/
#include <sys/param.h>
@@ -1092,15 +1092,19 @@ SYSCTL_INT(_kern, KERN_MAXFILESPERPROC, maxfilesperproc,
SYSCTL_INT(_kern, KERN_MAXFILES, maxfiles, CTLFLAG_RW, &maxfiles, 0, "");
static fildesc_devsw_installed = 0;
+#ifdef DEVFS
static void *devfs_token_stdin;
static void *devfs_token_stdout;
static void *devfs_token_stderr;
static void *devfs_token_fildesc[NUMFDESC];
+#endif
static void fildesc_drvinit(void *unused)
{
dev_t dev;
+#ifdef DEVFS
int fd;
+#endif
if( ! fildesc_devsw_installed ) {
dev = makedev(CDEV_MAJOR,0);
OpenPOWER on IntegriCloud