Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jun 2013 04:35:05 +0000 (UTC)
From:      Peter Wemm <peter@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r252367 - head/sys/kern
Message-ID:  <201306290435.r5T4Z5Ka031141@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: peter
Date: Sat Jun 29 04:35:04 2013
New Revision: 252367
URL: http://svnweb.freebsd.org/changeset/base/252367

Log:
  Help out gcc.  clang understands.
  
  sys_generic.c:1510: warning: 'precision' may be used uninitialized
  *** [sys_generic.o] Error code 1

Modified:
  head/sys/kern/sys_generic.c
  head/sys/kern/vfs_init.c

Modified: head/sys/kern/sys_generic.c
==============================================================================
--- head/sys/kern/sys_generic.c	Sat Jun 29 04:27:04 2013	(r252366)
+++ head/sys/kern/sys_generic.c	Sat Jun 29 04:35:04 2013	(r252367)
@@ -1510,6 +1510,7 @@ selsocket(struct socket *so, int events,
 	sbintime_t asbt, precision, rsbt;
 	int error;
 
+	precision = 0;	/* stupid gcc! */
 	if (tvp != NULL) {
 		rtv = *tvp;
 		if (rtv.tv_sec < 0 || rtv.tv_usec < 0 || 

Modified: head/sys/kern/vfs_init.c
==============================================================================
--- head/sys/kern/vfs_init.c	Sat Jun 29 04:27:04 2013	(r252366)
+++ head/sys/kern/vfs_init.c	Sat Jun 29 04:35:04 2013	(r252367)
@@ -201,6 +201,7 @@ vfs_register(struct vfsconf *vfc)
 	} else
 		vfc->vfc_typenum = maxvfsconf++;
 	TAILQ_INSERT_TAIL(&vfsconf, vfc, vfc_list);
+	vfc->vfc_flags |= VFCF_JAIL;
 
 	/*
 	 * If this filesystem has a sysctl node under vfs



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306290435.r5T4Z5Ka031141>