]> git.proxmox.com Git - mirror_qemu.git/commit
mirror: fix uninitialized variable delay_ns warnings
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 27 Aug 2014 11:08:54 +0000 (12:08 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 28 Aug 2014 12:42:25 +0000 (13:42 +0100)
commit6d0de8eb21b7a581999ca89a9b447fd1c91e23db
tree88e78f7ca276590386bd04b793526002c0425c9b
parent73735f72188bd5fe25c3478aa4a2f1a17cb878d8
mirror: fix uninitialized variable delay_ns warnings

The gcc 4.1.2 compiler warns that delay_ns may be uninitialized in
mirror_iteration().

There are two break statements in the do ... while loop that skip over
the delay_ns assignment.  These are probably the cause of the warning.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: BenoƮt Canet <benoit.canet@nodalink.com>
block/mirror.c