Whamcloud - gitweb
LU-5307 build: fix unused/uninitialized variable warnings 89/11189/7
authorAndreas Dilger <andreas.dilger@intel.com>
Wed, 23 Jul 2014 07:00:45 +0000 (01:00 -0600)
committerAndreas Dilger <andreas.dilger@intel.com>
Fri, 12 Sep 2014 09:37:14 +0000 (03:37 -0600)
Fix a few warnings about unused and uninitialized variables.

Also fix util/subst.c to include <sys/time.h> to avoid using
undeclared functions gettimeofday() and futimes().

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: Id7deabf6eb1f59ce98ab2cb51b9bf5198c500c1e

debugfs/zap.c
e2fsck/pass5.c

index 917bddf..0a1ae9b 100644 (file)
@@ -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]))
index b70e411..0ac1224 100644 (file)
@@ -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;