From: Claudio Fontana <claudio.fontana@huawei.com>
To: Paolo Bonzini <pbonzini@redhat.com>,
Luiz Capitulino <lcapitulino@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
Claudio Fontana <hw.claudio@gmail.com>,
Gonglei <arei.gonglei@huawei.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [RFC v3] monitor: add memory search commands s, sp
Date: Tue, 21 Apr 2015 17:12:10 +0200 [thread overview]
Message-ID: <553668CA.6030700@huawei.com> (raw)
In-Reply-To: <55365EA0.5000801@redhat.com>
On 21.04.2015 16:28, Paolo Bonzini wrote:
>
>
> On 21/04/2015 16:25, Claudio Fontana wrote:
>> I seem not to get this warning with the compiler version I am currently using,
>> and after checking the code I could not find out why with some compilers would emit such a warning.
>>
>> It is difficult for me to debug this issue since I do not get this..
>> I am using a slightly older compiler from Linaro for AArch64 (4.8.3 based)
>
> I would just add a NULL initializer.
>
> Paolo
>
Absolutely, yes, I thought about that and just be done with it.
I wonder if that's the right compiler behavior though;
is it acceptable that the compiler cannot figure out that needle is always initialized before use when you have
switch (format) {
case 'c':
needle = SOMETHING;
...
}
if (format != 'c') {
needle = SOMETHING_ELSE;
}
actually_use(needle);
?
Ciao,
Claudio
next prev parent reply other threads:[~2015-04-21 15:12 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-16 10:31 [Qemu-devel] [RFC v3] monitor: add memory search commands s, sp hw.claudio
2015-03-16 10:38 ` Patchew Tool
2015-03-16 14:45 ` Eric Blake
2015-03-16 14:56 ` Claudio Fontana
2015-03-16 15:01 ` Paolo Bonzini
2015-03-16 15:54 ` Claudio Fontana
2015-03-16 15:58 ` Eric Blake
2015-03-16 16:29 ` Paolo Bonzini
2015-03-18 13:30 ` Claudio Fontana
2015-03-27 16:19 ` Claudio Fontana
2015-03-30 14:54 ` Paolo Bonzini
2015-04-20 22:01 ` Luiz Capitulino
2015-04-21 14:25 ` Claudio Fontana
2015-04-21 14:28 ` Paolo Bonzini
2015-04-21 15:12 ` Claudio Fontana [this message]
2015-04-21 14:35 ` Luiz Capitulino
2015-04-21 14:47 ` Paolo Bonzini
2015-04-23 8:56 ` Claudio Fontana
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=553668CA.6030700@huawei.com \
--to=claudio.fontana@huawei.com \
--cc=arei.gonglei@huawei.com \
--cc=hw.claudio@gmail.com \
--cc=lcapitulino@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.