Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Apease bogus gcc warning.



details:   https://anonhg.NetBSD.org/src/rev/b44b1d3658aa
branches:  trunk
changeset: 811335:b44b1d3658aa
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Oct 25 09:27:14 2015 +0000

description:
Apease bogus gcc warning.

diffstat:

 sys/kern/vfs_syscalls.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0120fcdf8c2d -r b44b1d3658aa sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c   Sun Oct 25 07:51:16 2015 +0000
+++ b/sys/kern/vfs_syscalls.c   Sun Oct 25 09:27:14 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_syscalls.c,v 1.501 2015/10/23 19:40:10 maxv Exp $  */
+/*     $NetBSD: vfs_syscalls.c,v 1.502 2015/10/25 09:27:14 martin Exp $        */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.501 2015/10/23 19:40:10 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.502 2015/10/25 09:27:14 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_fileassoc.h"
@@ -462,7 +462,7 @@
     const char *path, int flags, void *data, enum uio_seg data_seg,
     size_t data_len, register_t *retval)
 {
-       struct vfsops *vfsops;
+       struct vfsops *vfsops = NULL;   /* XXX gcc4.8 */
        struct vnode *vp;
        void *data_buf = data;
        bool vfsopsrele = false;



Home | Main Index | Thread Index | Old Index