qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC v3] monitor: add memory search commands s, sp


From: Claudio Fontana
Subject: Re: [Qemu-devel] [RFC v3] monitor: add memory search commands s, sp
Date: Tue, 21 Apr 2015 17:12:10 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1

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




reply via email to

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