From 68963d5a262ad49cbdad8f946e59ebc34677fe33 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 29 Dec 2005 15:44:45 -0500 Subject: [PATCH] Clean up gcc -Wall complaints in resize2fs Remove unused variables in mark_table_blocks() Signed-off-by: "Theodore Ts'o" --- resize/ChangeLog | 3 +++ resize/resize2fs.c | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/resize/ChangeLog b/resize/ChangeLog index 8a3fde2..a6b2ac3 100644 --- a/resize/ChangeLog +++ b/resize/ChangeLog @@ -1,5 +1,8 @@ 2005-12-29 Theodore Ts'o + * resize2fs.c (mark_table_blocks): Remove unused variables to + clean up gcc -Wall complaints. + * main.c (main): If the filesystem being resized is a regular file, truncate or expand the file to match the new filesystem size. (Addresses Debian Bug: #271607) diff --git a/resize/resize2fs.c b/resize/resize2fs.c index 695bf7b..4eefd0d 100644 --- a/resize/resize2fs.c +++ b/resize/resize2fs.c @@ -485,10 +485,8 @@ static errcode_t mark_table_blocks(ext2_filsys fs, blk_t block, b; unsigned int j; dgrp_t i; - unsigned long meta_bg, meta_bg_size; - int has_super; + unsigned long meta_bg_size; unsigned int old_desc_blocks; - errcode_t retval; meta_bg_size = (fs->blocksize / sizeof (struct ext2_group_desc)); block = fs->super->s_first_data_block; -- 1.8.3.1