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.