Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/lfs Bogus gcc 4.8 maybe-used-uninitialized warning
details: https://anonhg.NetBSD.org/src/rev/a9cffd2ee369
branches: trunk
changeset: 326400:a9cffd2ee369
user: martin <martin%NetBSD.org@localhost>
date: Tue Jan 28 13:25:53 2014 +0000
description:
Bogus gcc 4.8 maybe-used-uninitialized warning
diffstat:
sys/ufs/lfs/ulfs_lookup.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 322757d668fb -r a9cffd2ee369 sys/ufs/lfs/ulfs_lookup.c
--- a/sys/ufs/lfs/ulfs_lookup.c Tue Jan 28 13:23:49 2014 +0000
+++ b/sys/ufs/lfs/ulfs_lookup.c Tue Jan 28 13:25:53 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ulfs_lookup.c,v 1.17 2013/10/25 20:05:39 martin Exp $ */
+/* $NetBSD: ulfs_lookup.c,v 1.18 2014/01/28 13:25:53 martin Exp $ */
/* from NetBSD: ufs_lookup.c,v 1.122 2013/01/22 09:39:18 dholland Exp */
/*
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ulfs_lookup.c,v 1.17 2013/10/25 20:05:39 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ulfs_lookup.c,v 1.18 2014/01/28 13:25:53 martin Exp $");
#ifdef _KERNEL_OPT
#include "opt_lfs.h"
@@ -1395,7 +1395,7 @@
int *found_ret, struct vnode **upperchild_ret)
{
const int needswap = ULFS_IPNEEDSWAP(VTOI(lower));
- ino_t upper_ino, found_ino;
+ ino_t upper_ino, found_ino = -1; /* XXX gcc 4.8 */
struct vnode *current, *next;
int error;
Home |
Main Index |
Thread Index |
Old Index