diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2017-07-21 09:21:05 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-07-21 15:00:07 +0100 |
commit | c8115f8eb8b6c4742e5e0c0c644904cd81ed65fa (patch) | |
tree | 93549e05684d318f3b08335f4bff7f566a55ffab /ui | |
parent | ff9b5475021d230eef39ec15af56c603eec1b82f (diff) | |
download | qemu-c8115f8eb8b6c4742e5e0c0c644904cd81ed65fa.zip qemu-c8115f8eb8b6c4742e5e0c0c644904cd81ed65fa.tar.gz qemu-c8115f8eb8b6c4742e5e0c0c644904cd81ed65fa.tar.bz2 |
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>
Diffstat (limited to 'ui')
0 files changed, 0 insertions, 0 deletions