Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/smbfs Bogus gcc 4.8 maybe use uninitialized warning
details: https://anonhg.NetBSD.org/src/rev/9c36baabe6c8
branches: trunk
changeset: 793139:9c36baabe6c8
user: martin <martin%NetBSD.org@localhost>
date: Tue Jan 28 13:23:49 2014 +0000
description:
Bogus gcc 4.8 maybe use uninitialized warning
diffstat:
sys/fs/smbfs/smbfs_node.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b4c36e712935 -r 9c36baabe6c8 sys/fs/smbfs/smbfs_node.c
--- a/sys/fs/smbfs/smbfs_node.c Tue Jan 28 13:18:42 2014 +0000
+++ b/sys/fs/smbfs/smbfs_node.c Tue Jan 28 13:23:49 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: smbfs_node.c,v 1.50 2013/10/20 21:13:15 christos Exp $ */
+/* $NetBSD: smbfs_node.c,v 1.51 2014/01/28 13:23:49 martin Exp $ */
/*
* Copyright (c) 2000-2001 Boris Popov
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smbfs_node.c,v 1.50 2013/10/20 21:13:15 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smbfs_node.c,v 1.51 2014/01/28 13:23:49 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -231,7 +231,7 @@
smbfs_nget(struct mount *mp, struct vnode *dvp, const char *name, int nmlen,
struct smbfattr *fap, struct vnode **vpp)
{
- struct vnode *vp;
+ struct vnode *vp = NULL; /* XXX gcc 4.8: maybe-uninitialized */
int error;
error = smbfs_node_alloc(mp, dvp, name, nmlen, fap, &vp);
Home |
Main Index |
Thread Index |
Old Index