Initialize metalbn in ufs_getlbns to appease -Wuninitialized.
Marked with XXXGCC for dreamcast (found while compiling for it). Reviewed by lukem.
This commit is contained in:
parent
0a5aea28f2
commit
e82dc5dc94
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: lfs.c,v 1.14 2005/06/02 01:02:21 lukem Exp $ */
|
/* $NetBSD: lfs.c,v 1.15 2005/06/07 09:08:07 he Exp $ */
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2003 The NetBSD Foundation, Inc.
|
* Copyright (c) 2003 The NetBSD Foundation, Inc.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
@ -240,6 +240,8 @@ ufs_getlbns(struct lfs * fs, struct uvnode * vp, daddr_t bn, struct indir * ap,
|
||||||
int i, numlevels, off;
|
int i, numlevels, off;
|
||||||
int lognindir, indir;
|
int lognindir, indir;
|
||||||
|
|
||||||
|
metalbn = 0; /* XXXGCC -Wuninitialized [dreamcast] */
|
||||||
|
|
||||||
if (nump)
|
if (nump)
|
||||||
*nump = 0;
|
*nump = 0;
|
||||||
numlevels = 0;
|
numlevels = 0;
|
||||||
|
|
Loading…
Reference in New Issue