From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUBFo-0001Tp-5s for qemu-devel@nongnu.org; Sat, 07 Mar 2015 04:42:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUBFk-000433-R2 for qemu-devel@nongnu.org; Sat, 07 Mar 2015 04:42:40 -0500 Received: from mail.uni-paderborn.de ([131.234.142.9]:41117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUBFk-00042A-KI for qemu-devel@nongnu.org; Sat, 07 Mar 2015 04:42:36 -0500 Message-ID: <54FAD673.3040106@mail.uni-paderborn.de> Date: Sat, 07 Mar 2015 10:44:03 +0000 From: Bastian Koppelmann MIME-Version: 1.0 References: <1425720834-5811-1-git-send-email-sw@weilnetz.de> In-Reply-To: <1425720834-5811-1-git-send-email-sw@weilnetz.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] target-tricore: Fix two helper functions (clang warnings) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil , QEMU Developer Hi Stefan, On 03/07/2015 09:33 AM, Stefan Weil wrote: > clang report: > > target-tricore/op_helper.c:1247:24: warning: > taking the absolute value of unsigned type 'uint32_t' (aka 'unsigned int') > has no effect [-Wabsolute-value] > target-tricore/op_helper.c:1248:25: warning: > taking the absolute value of unsigned type 'uint32_t' (aka 'unsigned int') > has no effect [-Wabsolute-value] > target-tricore/op_helper.c:1249:19: warning: > taking the absolute value of unsigned type 'uint32_t' (aka 'unsigned int') > has no effect [-Wabsolute-value] > target-tricore/op_helper.c:1297:24: warning: > taking the absolute value of unsigned type 'uint32_t' (aka 'unsigned int') > has no effect [-Wabsolute-value] > target-tricore/op_helper.c:1298:25: warning: > taking the absolute value of unsigned type 'uint32_t' (aka 'unsigned int') > has no effect [-Wabsolute-value] > target-tricore/op_helper.c:1299:19: warning: > taking the absolute value of unsigned type 'uint32_t' (aka 'unsigned int') > has no effect [-Wabsolute-value] > > Cc: Bastian Koppelmann > Signed-off-by: Stefan Weil > --- Good catch. I'm really confused, that this was not breaking my test suit. Your fix looks good to me at first sight, but I'll look into the problem. Cheers, Bastian