[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [5055] Handle terminating signals (Gerd Hoffmann)
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] Re: [5055] Handle terminating signals (Gerd Hoffmann) |
Date: |
Fri, 22 Aug 2008 13:55:57 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
Gerd Hoffmann wrote:
> Hi,
>
>>> } else {
>>> + if (shutdown_requested)
>>> + break;
>>> timeout = 10;
>
>> Could we define the policy that no patch is merged which introduces new
>> compiler warnings?
>
> Just double-checked. I don't get a warning for some strange reason.
> Was wondered how a warning bypassed my attention.
I like colorgcc for this a lot (either distcc or icecream is said to
support this as well). :)
>
> You probably see "ret can be used uninitialized ...", right?
Yep. Are you compiling qemu with gcc-3.3 (here: 3.3.3 hammer, x86_64 host)?
>
>> --- a/vl.c
>> +++ b/vl.c
>> @@ -7624,8 +7624,10 @@ static int main_loop(void)
>> timeout = 0;
>> }
>> } else {
>> - if (shutdown_requested)
>> + if (shutdown_requested) {
>> + ret = EXCP_INTERRUPT;
>> break;
>> + }
>
> Fix looks fine to me.
So we don't need to bother about no_shutdown in this path?
Jan
--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux