From: Peter Maydell <peter.maydell@linaro.org>
To: Bug 1268596 <1268596@bugs.launchpad.net>
Cc: QEMU Developers <qemu-devel@nongnu.org>
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 [thread overview]
Message-ID: <CAFEAcA90zBAB47RUJBFv63Z3hnapi-7AMOuSO915bGTJZsAX1g@mail.gmail.com> (raw)
In-Reply-To: <20140113144040.24787.5715.malone@chaenomeles.canonical.com>
On 13 January 2014 14:40, Paolo Bonzini <bonzini@gnu.org> 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
next prev parent reply other threads:[~2014-01-13 14:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-13 13:35 [Qemu-devel] [Bug 1268596] [NEW] Compilation Error: hw/virtio/dataplane/vring.c:400:5: error: ‘ret’ may be used uninitialised in this function DEnis
2014-01-13 14:08 ` [Qemu-devel] [Bug 1268596] " DEnis
2014-01-13 14:40 ` Paolo Bonzini
2014-01-13 14:53 ` Peter Maydell [this message]
2014-01-14 5:25 ` Stefan Hajnoczi
2014-01-14 12:42 ` DEnis
2016-06-17 8:31 ` T. Huth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFEAcA90zBAB47RUJBFv63Z3hnapi-7AMOuSO915bGTJZsAX1g@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=1268596@bugs.launchpad.net \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).