Whamcloud - gitweb
debugfs: fix two warning messages when compiling with LLVM
authorZheng Liu <wenqing.lz@taobao.com>
Mon, 26 May 2014 06:55:08 +0000 (14:55 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 27 May 2014 17:20:06 +0000 (13:20 -0400)
This commit fixes two warning messages when compiling with LLVM.

Reported-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
debugfs/lsdel.c
lib/ext2fs/inline_data.c

index 5276014..a7c30b3 100644 (file)
@@ -152,7 +152,7 @@ void do_lsdel(int argc, char **argv)
                                goto next;
                        }
                }
-               if (lsd.free_blocks && !lsd.bad_blocks ||
+               if ((lsd.free_blocks && !lsd.bad_blocks) ||
                    inode.i_flags & EXT4_INLINE_DATA_FL) {
                        if (num_delarray >= max_delarray) {
                                max_delarray += 50;
index 120afe8..19248a0 100644 (file)
@@ -281,10 +281,9 @@ static errcode_t ext2fs_inline_data_convert_dir(ext2_filsys fs, ext2_ino_t ino,
        struct ext2_dir_entry *dir, *dir2;
        struct ext2_dir_entry_tail *t;
        errcode_t retval;
-       unsigned int offset;
+       unsigned int offset, rec_len;
        int csum_size = 0;
        int filetype = 0;
-       unsigned rec_len;
 
        if (EXT2_HAS_RO_COMPAT_FEATURE(fs->super,
                                       EXT4_FEATURE_RO_COMPAT_METADATA_CSUM))