Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ext2fs Quell a (bogus) "may be used unintialized" wa...



details:   https://anonhg.NetBSD.org/src/rev/b47008949842
branches:  trunk
changeset: 793134:b47008949842
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jan 28 13:02:56 2014 +0000

description:
Quell a (bogus) "may be used unintialized" warning from gcc 4.8

diffstat:

 sys/ufs/ext2fs/ext2fs_rename.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 18c801f9877c -r b47008949842 sys/ufs/ext2fs/ext2fs_rename.c
--- a/sys/ufs/ext2fs/ext2fs_rename.c    Tue Jan 28 12:50:54 2014 +0000
+++ b/sys/ufs/ext2fs/ext2fs_rename.c    Tue Jan 28 13:02:56 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ext2fs_rename.c,v 1.5 2013/01/22 09:39:15 dholland Exp $       */
+/*     $NetBSD: ext2fs_rename.c,v 1.6 2014/01/28 13:02:56 martin Exp $ */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ext2fs_rename.c,v 1.5 2013/01/22 09:39:15 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ext2fs_rename.c,v 1.6 2014/01/28 13:02:56 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/buf.h>
@@ -793,7 +793,7 @@
     struct vnode **intermediate_node_ret)
 {
        struct vnode *vp, *dvp;
-       ino_t dotdot_ino;
+       ino_t dotdot_ino = -1;  /* XXX gcc 4.8.3: maybe-uninitialized */
        int error;
 
        KASSERT(mp != NULL);



Home | Main Index | Thread Index | Old Index