coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] ls: placate gcc-4.7.0's -Wstrict-overflow


From: Pádraig Brady
Subject: Re: [PATCH] ls: placate gcc-4.7.0's -Wstrict-overflow
Date: Sat, 28 May 2011 23:16:54 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3

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.

cheers,
Pádraig.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]