From 20310b5c3a10a3a1d88f516bedcd97e8cff2ed78 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Wed, 23 Jul 2014 01:00:45 -0600 Subject: [PATCH] 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 --- debugfs/zap.c | 1 - e2fsck/pass5.c | 3 --- 2 files changed, 4 deletions(-) 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; -- 1.8.3.1