summaryrefslogtreecommitdiff
path: root/misc/tune2fs.c
diff options
context:
space:
mode:
authorAndreas Dilger <adilger@whamcloud.com>2011-06-11 10:58:25 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-06-11 10:58:25 -0400
commitcf5301d7f2c3bbed3d26600335102414cbf0c4ba (patch)
tree42d6f95894583f1ddb507e5a2332b7b2ab6a13e4 /misc/tune2fs.c
parent44fe08f1fa1e9a994ff304aa02022c53c9341519 (diff)
downloade2fsprogs-cf5301d7f2c3bbed3d26600335102414cbf0c4ba.tar.gz
misc: clean up compiler warnings
Fix several types of compiler warnings (unused variables/labels), uninitialized variables, etc that are hit with gcc -Wall. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'misc/tune2fs.c')
-rw-r--r--misc/tune2fs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/misc/tune2fs.c b/misc/tune2fs.c
index 30348857..3f7e7e75 100644
--- a/misc/tune2fs.c
+++ b/misc/tune2fs.c
@@ -348,7 +348,6 @@ static void update_feature_set(ext2_filsys fs, char *features)
{
struct ext2_super_block *sb = fs->super;
struct ext2_group_desc *gd;
- errcode_t retval;
__u32 old_features[3];
int i, type_err;
unsigned int mask_err;
@@ -992,7 +991,7 @@ static void parse_extended_opts(ext2_filsys fs, const char *opts)
"Extended mount options too long\n");
continue;
}
- strcpy(fs->super->s_mount_opts, arg);
+ strcpy((char *)fs->super->s_mount_opts, arg);
ext2fs_mark_super_dirty(fs);
} else
r_usage++;
@@ -1097,7 +1096,7 @@ static int move_block(ext2_filsys fs, ext2fs_block_bitmap bmap)
{
char *buf;
- dgrp_t group;
+ dgrp_t group = 0;
errcode_t retval;
int meta_data = 0;
blk64_t blk, new_blk, goal;