[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] maint: avoid uniq.c warning from bleeding-edge gcc's -Wstric
From: |
Pádraig Brady |
Subject: |
Re: [PATCH] maint: avoid uniq.c warning from bleeding-edge gcc's -Wstrict-overflow |
Date: |
Thu, 15 Oct 2015 18:17:35 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
On 15/10/15 17:58, Jim Meyering wrote:
> On Thu, Oct 15, 2015 at 9:23 AM, Pádraig Brady <address@hidden> wrote:
>> On 15/10/15 17:14, Jim Meyering wrote:
>>> I build gcc from git regularly, and my first test is to use it to
>>> build coreutils.
>>> Today's gcc exposed this nit:
> ...
>>> - int nfiles = 0;
>>> + unsigned int nfiles = 0;
>>
>> How about size_t since it's used as an array index?
>
> That variable is used solely to count/index-into argv-related things.
> Are there systems that can support more than 2^32 command-line arguments?
> Happy to change (consistency?), if you'd like.
Heh, fair point :)
I was mainly thinking of consistency with changes like:
http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=v7.4-72-g0e93175
thanks,
Pádraig