qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] oslib-posix: Fix new compiler error with -Wclob


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH] oslib-posix: Fix new compiler error with -Wclobbered
Date: Tue, 08 Jul 2014 07:38:54 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

Il 07/07/2014 21:29, Stefan Weil ha scritto:
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.

Ok, I'll pick it up.

Paolo




reply via email to

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