Btrfs-progs: fix compile warnings

simple compile time warning fixes.

btrfs-calc-size.c: In function ‘print_seek_histogram’:
btrfs-calc-size.c:221: warning: ‘group_start’ may be used uninitialized in this function
btrfs-calc-size.c:223: warning: ‘group_end’ may be used uninitialized in this function

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
Anand Jain 2015-04-14 15:07:31 +02:00 committed by David Sterba
parent c5b2f66d63
commit 672076d4b7
1 changed files with 2 additions and 2 deletions

View File

@ -218,9 +218,9 @@ static void print_seek_histogram(struct root_stats *stat)
struct rb_node *n = rb_first(&stat->seek_root);
struct seek *seek;
u64 tick_interval;
u64 group_start;
u64 group_start = 0;
u64 group_count = 0;
u64 group_end;
u64 group_end = 0;
u64 i;
u64 max_seek = stat->max_seek_len;
int digits = 1;