reiserfsprogs: fix set-but-not-used gcc warnings
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
This commit is contained in:
1 parent
8f95bdb15d
commit
eba9abb84d
7 files changed
+11
-30
No files matched your search
@@ -1918,11 +1918,6 @@ static int dc_check_balance_leaf (struct tree_balance * tb, int h)
|
||||
{
|
||||
struct virtual_node * vn = tb->tb_vn;
|
||||
|
||||
/* Number of bytes that must be deleted from (value is negative if bytes
|
||||
are deleted) buffer which contains node being balanced. The mnemonic
|
||||
is that the attempted change in node space used level is levbytes
|
||||
bytes. */
|
||||
int levbytes;
|
||||
/* the maximal item size */
|
||||
int n_ret_value;
|
||||
/* F0 is the parent of the node whose balance is currently being checked */
|
||||
@@ -1931,8 +1926,6 @@ static int dc_check_balance_leaf (struct tree_balance * tb, int h)
|
||||
|
||||
F0 = PATH_H_PPARENT (tb->tb_path, 0);
|
||||
|
||||
levbytes = tb->insert_size[h];
|
||||
|
||||
if ( ! F0 ) {
|
||||
/* S[0] is the root now. */
|
||||
set_parameters (tb, h, 0, 0, 1, NULL, -1, -1);
|
||||
|
||||
@@ -370,10 +370,8 @@ static int leaf_copy_items (reiserfs_filsys_t * fs,
|
||||
int last_first, int cpy_num,
|
||||
int cpy_bytes)
|
||||
{
|
||||
struct buffer_head * dest;
|
||||
int pos, i, src_nr_item, bytes;
|
||||
|
||||
dest = dest_bi->bi_bh;
|
||||
if ( cpy_num == 0 )
|
||||
return 0;
|
||||
|
||||
|
||||
@@ -511,7 +511,6 @@ static int is_symlink = 0;
|
||||
static int print_leaf (FILE * fp, reiserfs_filsys_t * fs, struct buffer_head * bh,
|
||||
int print_mode, int first, int last)
|
||||
{
|
||||
struct block_head * blkh;
|
||||
struct item_head * ih;
|
||||
int i;
|
||||
int from, to;
|
||||
@@ -520,7 +519,6 @@ static int print_leaf (FILE * fp, reiserfs_filsys_t * fs, struct buffer_head * b
|
||||
if (!is_tree_node (bh, DISK_LEAF_NODE_LEVEL))
|
||||
return 1;
|
||||
|
||||
blkh = B_BLK_HEAD (bh);
|
||||
ih = B_N_PITEM_HEAD (bh,0);
|
||||
real_nr = leaf_count_ih(bh->b_data, bh->b_size);
|
||||
nr = get_blkh_nr_items((struct block_head *)bh->b_data);
|
||||
|
||||
Reference in new issue
Block a user