Help out gcc. clang understands.
sys_generic.c:1510: warning: 'precision' may be used uninitialized *** [sys_generic.o] Error code 1
This commit is contained in:
parent
d849f17dca
commit
76665df9bf
@ -1510,6 +1510,7 @@ selsocket(struct socket *so, int events, struct timeval *tvp, struct thread *td)
|
||||
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 ||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user