From: Andreas Dilger Date: Wed, 23 Jul 2014 07:00:45 +0000 (-0600) Subject: LU-5307 build: fix unused/uninitialized variable warnings X-Git-Tag: v1.42.12.wc1~1 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=20310b5c3a10a3a1d88f516bedcd97e8cff2ed78;p=tools%2Fe2fsprogs.git LU-5307 build: fix unused/uninitialized variable warnings Fix a few warnings about unused and uninitialized variables. Also fix util/subst.c to include to avoid using undeclared functions gettimeofday() and futimes(). Signed-off-by: Andreas Dilger Change-Id: Id7deabf6eb1f59ce98ab2cb51b9bf5198c500c1e --- diff --git a/debugfs/zap.c b/debugfs/zap.c index 917bddf..0a1ae9b 100644 --- a/debugfs/zap.c +++ b/debugfs/zap.c @@ -174,7 +174,6 @@ void do_block_dump(int argc, char *argv[]) errcode_t errcode; blk64_t block; char *file = NULL; - unsigned int i, j; int c, err; if (check_fs_open(argv[0])) diff --git a/e2fsck/pass5.c b/e2fsck/pass5.c index b70e411..0ac1224 100644 --- a/e2fsck/pass5.c +++ b/e2fsck/pass5.c @@ -242,9 +242,6 @@ static void check_block_bitmaps(e2fsck_t ctx) problem_t problem, save_problem; int fixit, had_problem; errcode_t retval; - int old_desc_blocks = 0; - int count = 0; - int cmp_block = 0; int redo_flag = 0; char *actual_buf, *bitmap_buf;