From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2ito-00038A-W9 for qemu-devel@nongnu.org; Mon, 13 Jan 2014 09:54:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2itk-0002Nz-78 for qemu-devel@nongnu.org; Mon, 13 Jan 2014 09:53:56 -0500 Received: from mail-la0-f41.google.com ([209.85.215.41]:58303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2itk-0002Nb-0s for qemu-devel@nongnu.org; Mon, 13 Jan 2014 09:53:52 -0500 Received: by mail-la0-f41.google.com with SMTP id mc6so1465513lab.0 for ; Mon, 13 Jan 2014 06:53:50 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20140113144040.24787.5715.malone@chaenomeles.canonical.com> References: <20140113133525.26208.82917.malonedeb@wampee.canonical.com> <20140113144040.24787.5715.malone@chaenomeles.canonical.com> From: Peter Maydell Date: Mon, 13 Jan 2014 14:53:30 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] =?utf-8?q?=5BBug_1268596=5D_Re=3A_Compilation_Error?= =?utf-8?q?=3A_hw/virtio/dataplane/vring=2Ec=3A400=3A5=3A_error=3A_?= =?utf-8?q?=E2=80=98ret=E2=80=99_may_be_used_uninitialised_in_this_?= =?utf-8?q?function?= List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bug 1268596 <1268596@bugs.launchpad.net> Cc: QEMU Developers On 13 January 2014 14:40, Paolo Bonzini 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