summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-08-27 18:59:58 +0000
committerderaadt <deraadt@openbsd.org>2015-08-27 18:59:58 +0000
commit8d04643cdf2cc9274f87397a50707aa788377b3b (patch)
treebd289cff95656c5920c68bc3591fd6c80f7b58a1 /sys
parentdocument CDIOREADTOCENTRIES, rather than the misspelled (but equivalent) (diff)
downloadwireguard-openbsd-8d04643cdf2cc9274f87397a50707aa788377b3b.tar.xz
wireguard-openbsd-8d04643cdf2cc9274f87397a50707aa788377b3b.zip
delete a comment about gcc -Wuninitialized
Diffstat (limited to 'sys')
-rw-r--r--sys/uvm/uvm_vnode.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/uvm/uvm_vnode.c b/sys/uvm/uvm_vnode.c
index 0239d073f05..4900ba4e113 100644
--- a/sys/uvm/uvm_vnode.c
+++ b/sys/uvm/uvm_vnode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_vnode.c,v 1.90 2015/05/07 01:55:44 jsg Exp $ */
+/* $OpenBSD: uvm_vnode.c,v 1.91 2015/08/27 18:59:58 deraadt Exp $ */
/* $NetBSD: uvm_vnode.c,v 1.36 2000/11/24 20:34:01 chs Exp $ */
/*
@@ -140,9 +140,7 @@ uvn_attach(struct vnode *vp, vm_prot_t accessprot)
struct vattr vattr;
int oldflags, result;
struct partinfo pi;
- u_quad_t used_vnode_size;
-
- used_vnode_size = (u_quad_t)0; /* XXX gcc -Wuninitialized */
+ u_quad_t used_vnode_size = 0;
/* first get a lock on the uvn. */
while (uvn->u_flags & UVM_VNODE_BLOCKED) {