Received: from eggs.gnu.org ([2001:4830:134:3::10]:36528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3lYt-0007lj-Bz for qemu-devel@nongnu.org; Mon, 29 Jul 2013 07:24:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3lYq-0001bq-Iq for qemu-devel@nongnu.org; Mon, 29 Jul 2013 07:24:23 -0400 From: Peter Maydell Date: Mon, 29 Jul 2013 12:00:30 +0100 Message-Id: <1375095632-13735-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH for-1.6 0/2] Fix clang warnings in linux-user signal code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , Riku Voipio , qemu-ppc@nongnu.org, Alexander Graf , patches@linaro.org These two patches fix some clang warnings about use of uninitialized data in linux-user's signal related code for PPC and ARM. The issue in both cases is the same: a code path taken in case of failure was doing 'unlock_user_struct()' with parameters which hadn't yet been set up. I've marked this as for-1.6 because the patches are simple and I think it's nice to get rid of warnings. However, they're not critical for 1.6: * the existing code will be OK because unlock_user_struct() is a no-op unless DEBUG_REMAP is defined * clang isn't our primary compiler on Linux * configure (kind of inadvertently) disables -Werror for clang * there are other warnings not yet fixed anyhow (most notably all the places which use 'dprintf' as a debug macro despite that being the name of a POSIX specified function) Peter Maydell (2): linux-user/signal.c: PPC: Silence clang uninitialized-use warning linux-user/signal.c: Avoid using uninitialized data in ARM sigreturn linux-user/signal.c | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) -- 1.7.9.5