Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/lfs Quell a gcc 4.8 maybe-unitialized false positive
details: https://anonhg.NetBSD.org/src/rev/e77cf5220bb9
branches: trunk
changeset: 326396:e77cf5220bb9
user: martin <martin%NetBSD.org@localhost>
date: Tue Jan 28 13:12:22 2014 +0000
description:
Quell a gcc 4.8 maybe-unitialized false positive
diffstat:
sys/ufs/lfs/lfs_rename.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ad7d62a84cb5 -r e77cf5220bb9 sys/ufs/lfs/lfs_rename.c
--- a/sys/ufs/lfs/lfs_rename.c Tue Jan 28 13:08:13 2014 +0000
+++ b/sys/ufs/lfs/lfs_rename.c Tue Jan 28 13:12:22 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_rename.c,v 1.4 2013/07/28 01:10:49 dholland Exp $ */
+/* $NetBSD: lfs_rename.c,v 1.5 2014/01/28 13:12:22 martin Exp $ */
/* from NetBSD: ufs_rename.c,v 1.6 2013/01/22 09:39:18 dholland Exp */
/*-
@@ -89,7 +89,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_rename.c,v 1.4 2013/07/28 01:10:49 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_rename.c,v 1.5 2014/01/28 13:12:22 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -682,7 +682,7 @@
struct vnode **intermediate_node_ret)
{
struct vnode *vp, *dvp;
- ino_t dotdot_ino;
+ ino_t dotdot_ino = -1; /* XXX gcc 4.8: maybe-uninitialized */
int error;
KASSERT(mp != NULL);
Home |
Main Index |
Thread Index |
Old Index