qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [Bug 1268596] Re: Compilation Error : hw/virtio/datapla


From: Peter Maydell
Subject: Re: [Qemu-devel] [Bug 1268596] Re: Compilation Error : hw/virtio/dataplane/vring.c:400:5: error: ‘ret’ may be used uninitialised in this function
Date: Mon, 13 Jan 2014 14:53:30 +0000

On 13 January 2014 14:40, Paolo Bonzini <address@hidden> wrote:
> What compiler is this? The variable is quite obviously initialized
> before that line.

The issue is that one of the code paths has a shadowing declaration
of 'ret' which is what gets assigned to, and so in that code path
the compiler is correct that the outer 'ret' is not assigned to.

Stefan said he was going to send out a fix for this.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]