[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] ls: placate gcc-4.7.0's -Wstrict-overflow
From: |
Jim Meyering |
Subject: |
Re: [PATCH] ls: placate gcc-4.7.0's -Wstrict-overflow |
Date: |
Sun, 29 May 2011 11:34:32 +0200 |
Pádraig Brady wrote:
> On 28/05/11 22:34, Jim Meyering wrote:
>> I built the latest gcc from git/svn (4.7.0 20110528)
>> and got a new -Wstrict-overflow warning:
>>
>> ls.c: In function 'main':
>> ls.c:2291:9: error: assuming signed overflow does not occur when\
>> simplifying conditional to constant [-Werror=strict-overflow]
>>
>> This fixes it:
> And makes it much easier to read.
Thanks for the review.