Mark Cave-Ayland c8115f8eb8 block/vpc: fix uninitialised variable compiler warning
Since commit cfc87e00 "block/vpc.c: Handle write failures in
get_image_offset()" older versions of gcc (in this case 4.7) incorrectly
warn that "ret" can be used uninitialised in vpc_co_pwritev().

Setting ret to 0 at the start of vpc_co_pwritev() prevents the warning
in gcc 4.7 and enables compilation with -Werror to succeed.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1500625265-23844-1-git-send-email-mark.cave-ayland@ilande.co.uk
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2017-07-21 15:00:07 +01:00
..
2017-07-18 15:14:35 +02:00
2017-07-18 13:09:51 +01:00
2017-07-14 09:36:40 +01:00
2017-07-11 17:44:57 +02:00
2017-07-14 09:36:40 +01:00
2017-07-17 11:28:15 +08:00
2017-07-17 11:34:11 +08:00
2017-07-17 11:34:11 +08:00
2017-06-20 14:31:31 +02:00
2017-07-14 09:36:40 +01:00
2017-07-17 11:34:20 +08:00
2017-07-17 11:34:20 +08:00
2017-07-17 11:28:15 +08:00