From: "J. R. Okajima" <[email protected]> commit 3a33601796d4139286c57cd15bf7d88d00aa7674 upstream
Signed-off-by: J. R. Okajima <[email protected]> fs/aufs/vdir.c: In function 'fillvdir': fs/aufs/vdir.c:493:15: warning: 'ino' may be used uninitialized in this function [-Wmaybe-uninitialized] arg->err = au_nhash_append_wh ^~~~~~~~~~~~~~~~~~ (&arg->whlist, name, nlen, ino, d_type, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arg->bindex, shwh); ~~~~~~~~~~~~~~~~~~ Signed-off-by: He Zhe <[email protected]> --- fs/aufs/vdir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/aufs/vdir.c b/fs/aufs/vdir.c index 5b78b5d..0b713a5 100644 --- a/fs/aufs/vdir.c +++ b/fs/aufs/vdir.c @@ -484,6 +484,7 @@ static int fillvdir(struct dir_context *ctx, const char *__name, int nlen, if (au_nhash_test_known_wh(&arg->whlist, name, nlen)) goto out; /* already whiteouted */ + ino = 0; /* just to suppress a warning */ if (shwh) arg->err = au_wh_ino(sb, arg->bindex, h_ino, d_type, &ino); -- 2.7.4 -- _______________________________________________ linux-yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/linux-yocto
