Received: from eggs.gnu.org ([2001:4830:134:3::10]:34059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4Ebk-0003Bm-Na for qemu-devel@nongnu.org; Mon, 07 Jul 2014 15:29:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4Ebe-0003fL-MY for qemu-devel@nongnu.org; Mon, 07 Jul 2014 15:29:48 -0400 Message-ID: <53BAF51D.1040803@weilnetz.de> Date: Mon, 07 Jul 2014 21:29:33 +0200 From: Stefan Weil MIME-Version: 1.0 References: <1403643149-30440-1-git-send-email-sw@weilnetz.de> <53A9E789.8040809@redhat.com> In-Reply-To: <53A9E789.8040809@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] oslib-posix: Fix new compiler error with -Wclobbered List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-trivial@nongnu.org, Paolo Bonzini , qemu-devel@nongnu.org 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 =E2=80=98hpagesize=E2=80=99 might be clobbered by =E2=80=98l= ongjmp=E2=80=99 or =E2=80=98vfork=E2=80=99 >> [-Werror=3Dclobbered] >> >> 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 >=20 > Reviewed-by: Paolo Bonzini Ping? Maybe this patch can be committed directly as a build fix for people like me who use compiler flag -Wextra. Stefan