btrfs-progs: image: fix compiler warning
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Wed, 5 Oct 2016 08:07:48 +0000 (17:07 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 24 Oct 2016 12:58:19 +0000 (14:58 +0200)
commitc9ec835ae1448e9f6fe5e9bbe29c94b6d8cee4ee
tree00fa360bcda239b4a441fb304f701273040f1e60
parent8c663f9f3616e0de56e77ac4a91ef3db2d99bf34
btrfs-progs: image: fix compiler warning

In v4.8-rc1, gcc 5.3.1 gives following warning. Fixed it.

    [CC]     btrfs-image.o
btrfs-image.c: In function 'flush_pending':
btrfs-image.c:708:17: warning: 'start' may be used uninitialized in this function [-Wmaybe-uninitialized]
  header->bytenr = cpu_to_le64(start);
                 ^
btrfs-image.c:927:6: note: 'start' was declared here
  u64 start;
      ^

Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
btrfs-image.c