On 2016/11/1 5:50, Jeff Cody wrote:
Some older GCC versions (e.g. 4.4.7) report a warning on an uninitialized variable for 'request', even though all possible code paths that reference 'request' will be initialized. To appease these versions, initialize the variable to 0.
Thanks for reporting this, I think this patch can go through trivial branch. Cc: Michael Tokarev <m...@tls.msk.ru> Cc: qemu-triv...@nongnu.org
Reported-by: Mark Cave-Ayland <mark.cave-ayl...@ilande.co.uk> Signed-off-by: Jeff Cody <jc...@redhat.com>
Reviewed-by: zhanghailiang <zhang.zhanghaili...@huawei.com>
--- migration/colo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration/colo.c b/migration/colo.c index e7224b8..93c85c5 100644 --- a/migration/colo.c +++ b/migration/colo.c @@ -439,7 +439,7 @@ void *colo_process_incoming_thread(void *opaque) } while (mis->state == MIGRATION_STATUS_COLO) { - int request; + int request = 0; colo_wait_handle_message(mis->from_src_file, &request, &local_err); if (local_err) {