[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] target-mips: Fix warning about shifting negativ
From: |
Pranith Kumar |
Subject: |
Re: [Qemu-devel] [PATCH] target-mips: Fix warning about shifting negative value |
Date: |
Mon, 8 Aug 2016 09:56:48 -0400 |
Hi Paolo,
On Mon, Aug 8, 2016 at 5:11 AM, Paolo Bonzini <address@hidden> wrote:
>
>
> On 07/08/2016 03:15, Pranith Kumar wrote:
>> With latest clang you get the following warning:
>>
>> warning: shifting a negative signed value is undefined
>> [-Wshift-negative-value]
>>
>> Fix the warning by changing negative shift to inverse 0 shift.
>>
>
> No, please no.
>
> clang is wrong in putting this under -Wall.
>
Can you please explain why this warning is spurious? Isn't this what
the standard says?
Thanks,
--
Pranith