[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [PATCH] oslib-posix: Fix new compiler error with -Wcl
From: |
Stefan Weil |
Subject: |
Re: [Qemu-trivial] [PATCH] oslib-posix: Fix new compiler error with -Wclobbered |
Date: |
Mon, 07 Jul 2014 21:29:33 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
Am 24.06.2014 23:03, schrieb Paolo Bonzini:
> Il 24/06/2014 22:52, Stefan Weil ha scritto:
>> Newer versions of gcc report a warning (or an error with -Werror) when
>> compiler option -Wclobbered (or -Wextra) is active:
>>
>> util/oslib-posix.c:372:12: error:
>> variable ‘hpagesize’ might be clobbered by ‘longjmp’ or ‘vfork’
>> [-Werror=clobbered]
>>
>> The rewritten code fixes this warning: variable 'hpagesize' is now set
>> and
>> used in a block without any call of sigsetjmp or similar functions.
>>
>> Signed-off-by: Stefan Weil <address@hidden>
>
> Reviewed-by: Paolo Bonzini <address@hidden>
Ping? Maybe this patch can be committed directly as a build fix for
people like me who use compiler flag -Wextra.
Stefan
- Re: [Qemu-trivial] [PATCH] oslib-posix: Fix new compiler error with -Wclobbered,
Stefan Weil <=