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-06-16 07:55:00 +08:00
2017-07-13 13:49:58 +02:00
2017-07-11 17:45:01 +02:00
2017-06-26 14:54:46 +02:00
2017-06-26 14:54:46 +02:00
2017-07-18 15:14:36 +02:00
2017-04-24 15:09:33 -04:00
2017-04-24 15:09:33 -04:00
2017-07-18 15:14:35 +02:00
2017-07-11 17:45:01 +02:00
2017-07-11 17:44:56 +02:00
2017-05-16 10:34:50 -04:00
2017-07-11 17:44:59 +02:00
2016-10-07 14:14:06 +02:00
2017-04-24 15:09:33 -04:00
2016-10-07 14:14:06 +02:00
2017-07-11 17:45:01 +02:00
2017-07-11 17:45:01 +02:00
2017-07-14 09:36:40 +01:00
2017-07-18 13:09:51 +01:00
2017-01-27 18:07:58 +01:00
2017-07-14 09:36:40 +01:00
2017-02-21 11:39:39 +00:00
2017-07-11 17:44:57 +02:00
2017-07-11 17:45:01 +02:00
2017-07-14 12:04:42 +02:00
2017-07-14 12:04:41 +02:00
2017-07-14 12:04:42 +02:00
2017-07-14 09:36:40 +01:00
2017-05-09 09:13:51 +02:00
2017-07-11 17:45:01 +02:00
2017-07-18 15:14:36 +02:00
2017-07-11 17:44:59 +02:00
2016-11-25 13:51:30 +01:00
2017-07-11 17:44:56 +02:00
2017-07-11 17:45:02 +02:00
2017-05-11 14:28:07 +02:00
2017-07-17 11:28:15 +08:00
2017-07-11 17:45:02 +02:00
2017-07-11 17:45:01 +02:00
2016-06-07 18:19:24 +03:00
2017-07-17 11:34:11 +08:00
2017-07-17 11:34:11 +08:00
2017-07-17 11:34:11 +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-11 17:45:01 +02:00
2017-07-14 09:36:40 +01:00
2017-07-10 13:18:07 +02:00
2017-07-17 11:34:20 +08:00
2017-05-09 09:13:51 +02:00
2017-07-17 11:34:20 +08:00
2017-07-10 13:18:07 +02:00
2017-07-18 15:14:35 +02:00
2017-07-10 13:18:06 +02:00
2017-07-17 11:28:15 +08:00
2016-09-23 11:42:52 +08:00
2017-07-11 17:45:01 +02:00
2017-07-11 17:45:01 +02:00
2014-12-12 15:42:22 +00:00
2017-07-18 15:14:35 +02:00
2017-07-21 15:00:07 +01:00
2017-07-18 15:14:36 +02:00
2017-05-09 09:13:51 +02:00
2017-02-21 11:39:39 +00:00
2016-10-07 13:34:07 +02:00