|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-trivial] [PATCH] oslib-posix: Fix new compiler error with -Wclobbered |
Date: | Tue, 24 Jun 2014 23:03:05 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
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>
[Prev in Thread] | Current Thread | [Next in Thread] |